newHTML / app.py
orderlymirror's picture
Update app.py
2be5f07 verified
raw
history blame contribute delete
343 Bytes
import gradio as gr
import os
# Run the setup script to extract the .zip file
os.system("sh setup.sh")
def serve_html():
with open("index.html", "r") as file:
html_content = file.read()
return html_content
interface = gr.Interface(fn=serve_html, inputs=[], outputs="html")
if __name__ == "__main__":
interface.launch()