lampongyuen commited on
Commit
19d9930
·
1 Parent(s): 76682f7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # https://www.gradio.app/guides/quickstart
2
+ # https://www.gradio.app/guides/key-features
3
+ import gradio as gr
4
+ import time
5
+ def greet(name):
6
+ message_to_user="start here"
7
+ # gr.Info("message1")
8
+ # time.sleep(4)
9
+ # gr.Info("message2")
10
+ # gr.Warning("warning")
11
+ return "Hello " + name + "!"
12
+
13
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
14
+
15
+ demo.launch()