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