File size: 529 Bytes
53e241e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr

def hello_world(input_text):
    return f"{input_text} Hello World!"

def setup_interface():
    with gr.Blocks() as demo:
        gr.Markdown("### ์ž…๋ ฅ ๊ฐ’์„ ๋„ฃ์œผ์„ธ์š”:")
        
        with gr.Row():
            input_text = gr.Textbox(placeholder="์—ฌ๊ธฐ์— ์ž…๋ ฅํ•˜์„ธ์š”...", label="์ž…๋ ฅ")
            output_text = gr.Textbox(label="๊ฒฐ๊ณผ")
        
        input_text.change(hello_world, inputs=input_text, outputs=output_text)
    
    return demo

demo = setup_interface()
demo.launch()