seawolf2357 commited on
Commit
27ec240
ยท
verified ยท
1 Parent(s): 7ba5a2e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # ์ž…๋ ฅ์— 'world'๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ํ•จ์ˆ˜
4
+ def add_world(input_text):
5
+ return input_text + " world"
6
+
7
+ # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์„ค์ •
8
+ iface = gr.Interface(fn=add_world, inputs="text", outputs="text", title="Hello to World")
9
+
10
+ # ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
11
+ iface.launch()