Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|