helloworldtest2 / app.py
seawolf2357's picture
Create app.py
27ec240 verified
raw
history blame contribute delete
288 Bytes
import gradio as gr
# ์ž…๋ ฅ์— 'world'๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ํ•จ์ˆ˜
def add_world(input_text):
return input_text + " world"
# Gradio ์ธํ„ฐํŽ˜์ด์Šค ์„ค์ •
iface = gr.Interface(fn=add_world, inputs="text", outputs="text", title="Hello to World")
# ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
iface.launch()