File size: 340 Bytes
1133212
 
 
 
 
066d53f
 
 
 
 
 
 
 
 
 
1133212
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def greet(name):
    return "Hello " + name + "!!"

with open("index.html", "r") as f:
    html_content = f.read()

with gr.Blocks() as demo:
    gr.HTML(html_content)
    with gr.Row():
        inp = gr.Textbox(placeholder="What is your name?")
        out = gr.Textbox()
    inp.submit(greet, inp, out)

demo.launch()