import gradio as gr def load_html(): with open('index.html','r') as h: html=h.read() h.close() return html with gr.Blocks() as app: html = gr.HTML() app.load(load_html,None,html) app.launch()