Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
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()
|