Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|