michaelhoward2051 commited on
Commit
41b76fb
·
verified ·
1 Parent(s): 561b34d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio as gr
2
 
 
 
3
 
4
- def greet(name):
5
- return "Hello " + name
6
-
7
-
8
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
9
-
10
- demo.launch(share=True)
11
 
 
 
1
  import gradio as gr
2
 
3
+ def greet(name,intensity):
4
+ return ("Hello " + name + "!\n") * int(intensity)
5
 
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=["text","slider"],
9
+ outputs="text",
10
+ )
 
 
11
 
12
+ demo.launch(share=True)