import gradio as gr def serve_html(): with open("index.html") as f: return f.read() # Specify inputs as None since there are no input fields app = gr.Interface(fn=serve_html, inputs=None, outputs="html") app.launch()