ysharma HF Staff commited on
Commit
3bdad20
·
verified ·
1 Parent(s): 278a145

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
+
6
+ with gr.Blocks(theme=gr.themes.Base(radius_size="none")) as demo:
7
+ with gr.Row():
8
+ text1 = gr.Textbox(value="Yuvi")
9
+ text2 = gr.Textbox()
10
+ btn = gr.Button("GO!")
11
+ btn.click(fn=greet, inputs=text1, outputs=text2)
12
+
13
+ demo.launch()