Muhammad-Izhan commited on
Commit
ac80cd3
·
verified ·
1 Parent(s): 5f44b7e

Upload app1.py

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