Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
with gr.Blocks() as app:
|
| 4 |
-
gr.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()
|