orderlymirror commited on
Commit
2be5f07
·
verified ·
1 Parent(s): be6de63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ # Run the setup script to extract the .zip file
5
+ os.system("sh setup.sh")
6
+
7
+ def serve_html():
8
+ with open("index.html", "r") as file:
9
+ html_content = file.read()
10
+ return html_content
11
+
12
+ interface = gr.Interface(fn=serve_html, inputs=[], outputs="html")
13
+
14
+ if __name__ == "__main__":
15
+ interface.launch()