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()
|