minnehwg commited on
Commit
74fcca9
·
verified ·
1 Parent(s): a146d7d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from util import update
3
+
4
+ with gr.Blocks() as demo:
5
+ gr.Markdown("Start typing below and then click **Run** to see the output.")
6
+ with gr.Row():
7
+ inp = gr.Textbox(placeholder="What is your name?")
8
+ out = gr.Textbox()
9
+ btn = gr.Button("Run")
10
+ btn.click(fn=update, inputs=inp, outputs=out)
11
+
12
+ demo.launch()