yeonsoo commited on
Commit
45e28c9
ยท
1 Parent(s): 606ea90
Files changed (3) hide show
  1. app.py +10 -1
  2. test.py +1 -0
  3. test2.py +0 -10
app.py CHANGED
@@ -1 +1,10 @@
1
- print("test")
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ gr.close_all() # ํ˜น์‹œ ์ด์ „ ์ธ์Šคํ„ด์Šค๊ฐ€ ๋‚จ์•„์žˆ์„ ๊ฒฝ์šฐ ๋‹ซ๊ธฐ
4
+
5
+ def greet(name):
6
+ print(f"์ž…๋ ฅ๋œ ์ด๋ฆ„: {name}") # ๋””๋ฒ„๊น…์šฉ
7
+ return "Hello " + name + "!!"
8
+
9
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ demo.launch(server_name="0.0.0.0", server_port=7680, debug=True,share=True)
test.py ADDED
@@ -0,0 +1 @@
 
 
1
+ print("test")
test2.py DELETED
@@ -1,10 +0,0 @@
1
- import gradio as gr
2
-
3
- gr.close_all() # ํ˜น์‹œ ์ด์ „ ์ธ์Šคํ„ด์Šค๊ฐ€ ๋‚จ์•„์žˆ์„ ๊ฒฝ์šฐ ๋‹ซ๊ธฐ
4
-
5
- def greet(name):
6
- print(f"์ž…๋ ฅ๋œ ์ด๋ฆ„: {name}") # ๋””๋ฒ„๊น…์šฉ
7
- return "Hello " + name + "!!"
8
-
9
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
10
- demo.launch(server_name="0.0.0.0", server_port=7680, debug=True,share=True)