Spaces:
Sleeping
Sleeping
Commit
·
9460c6d
1
Parent(s):
9068bf9
tryout moving gradio app to main.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1 @@
|
|
| 1 |
-
import
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
def greet(name):
|
| 5 |
-
return "Hello " + name + "!!"
|
| 6 |
-
|
| 7 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
-
demo.launch()
|
|
|
|
| 1 |
+
import main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return "Hello " + name + "!!"
|
| 6 |
+
|
| 7 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
+
demo.launch()
|