import gradio as gr | |
def load_html(): | |
with open('index.html','r') as h: | |
html=h.read() | |
html.replace("$name","Test") | |
h.close() | |
return html | |
with gr.Blocks() as app: | |
html = gr.HTML() | |
app.load(load_html,None,html) | |
app.launch() |
import gradio as gr | |
def load_html(): | |
with open('index.html','r') as h: | |
html=h.read() | |
html.replace("$name","Test") | |
h.close() | |
return html | |
with gr.Blocks() as app: | |
html = gr.HTML() | |
app.load(load_html,None,html) | |
app.launch() |