Omnibus commited on
Commit
37686b3
1 Parent(s): 63e943a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,5 +1,13 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
3
  with gr.Blocks() as app:
4
- gr.HTML('index.html')
 
5
  app.launch()
 
1
  import gradio as gr
2
 
3
+ def load_html():
4
+ with open('index.html','r') as h:
5
+ html=h.read()
6
+ h.close()
7
+ return html
8
+
9
+
10
  with gr.Blocks() as app:
11
+ html = gr.HTML()
12
+ app.load(load_html,None,html)
13
  app.launch()