ginipick commited on
Commit
53e241e
·
verified ·
1 Parent(s): 2748399

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def hello_world(input_text):
4
+ return f"{input_text} Hello World!"
5
+
6
+ def setup_interface():
7
+ with gr.Blocks() as demo:
8
+ gr.Markdown("### 입력 값을 넣으세요:")
9
+
10
+ with gr.Row():
11
+ input_text = gr.Textbox(placeholder="여기에 입력하세요...", label="입력")
12
+ output_text = gr.Textbox(label="결과")
13
+
14
+ input_text.change(hello_world, inputs=input_text, outputs=output_text)
15
+
16
+ return demo
17
+
18
+ demo = setup_interface()
19
+ demo.launch()