Tonic commited on
Commit
c8312da
·
verified ·
1 Parent(s): 708de84

Create app.py

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 echo(name, intensity):
4
+ return f"Name: {name}, Intensity: {intensity}"
5
+
6
+ demo = gr.Interface(
7
+ fn=echo,
8
+ inputs=["text", "slider"],
9
+ outputs=["text"],
10
+ )
11
+
12
+ demo.launch()