cr8 commited on
Commit
8fe1445
·
verified ·
1 Parent(s): 49f79a2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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()