awacke1 commited on
Commit
f5323f0
·
1 Parent(s): f0267cd

Create new file

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def update(name):
4
+ return f"Welcome to Gradio, {name}!"
5
+
6
+ demo = gr.Blocks()
7
+
8
+ with demo:
9
+ gr.Markdown(
10
+ """
11
+ # Hello World!
12
+ Start typing below to see the output.
13
+ """)
14
+ inp = gr.Textbox(placeholder="What is your name?")
15
+ out = gr.Textbox()
16
+
17
+ inp.change(fn=update,
18
+ inputs=inp,
19
+ outputs=out)
20
+
21
+ demo.launch()