multimodalart HF Staff commited on
Commit
346aa09
·
1 Parent(s): 599336c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ import gradio as gr
4
+ def update(name):
5
+ return f"Welcome to Gradio, {name}!"
6
+
7
+ with gr.Blocks() as demo:
8
+ gr.HTML('<img src="file/cat-toy.png">')
9
+ with gr.Row():
10
+ inp = gr.Textbox(placeholder="What is your name?")
11
+ out = gr.Textbox()
12
+ btn = gr.Button("Run")
13
+ btn.click(fn=update, inputs=inp, outputs=out)
14
+
15
+ demo.launch()