themalinery commited on
Commit
9460c6d
·
1 Parent(s): 9068bf9

tryout moving gradio app to main.py

Browse files
Files changed (2) hide show
  1. app.py +1 -8
  2. main.py +8 -0
app.py CHANGED
@@ -1,8 +1 @@
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()
 
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()