komyu1227 commited on
Commit
cadd0af
·
1 Parent(s): d43430e

initialize

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
+
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
+
6
+ with gr.Blocks() as demo:
7
+ name = gr.Textbox("text")
8
+ output = gr.Textbox("text")
9
+ greet_button = gr.Button("Greet")
10
+ greet_button.click(greet, name, outputs=output, api_name="greet")
11
+
12
+ demo.launch()