litifeng commited on
Commit
4a2c2fa
·
verified ·
1 Parent(s): 14b3367

create a quickstart code

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name, intensity):
4
+ return "hello, " + name + "!" * int(intensity)
5
+
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ input=["text", "slider"],
9
+ output=["text"],
10
+ )
11
+
12
+ demo.launch()