Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
# Function to serve the HTML file
|
| 5 |
+
def serve_html():
|
| 6 |
+
with open("index.html", "r") as file:
|
| 7 |
+
return file.read()
|
| 8 |
+
|
| 9 |
+
# Create a Gradio Interface
|
| 10 |
+
iface = gr.Interface(fn=serve_html, inputs=None, outputs="html", live=True)
|
| 11 |
+
|
| 12 |
+
# Launch the Gradio app
|
| 13 |
+
iface.launch()
|