Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,13 @@ class NotificationHandler(HandleNotification):
|
|
49 |
abortable = client.handle_notifications(NotificationHandler())
|
50 |
# Optionally, to abort handle notifications look, call abortable.abort()
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
abortable = client.handle_notifications(NotificationHandler())
|
50 |
# Optionally, to abort handle notifications look, call abortable.abort()
|
51 |
|
52 |
+
def greet(name, intensity):
|
53 |
+
return "Hello, " + name + "!" * int(intensity)
|
54 |
+
|
55 |
+
demo = gr.Interface(
|
56 |
+
fn=greet,
|
57 |
+
inputs=["text", "slider"],
|
58 |
+
outputs=["text"],
|
59 |
+
)
|
60 |
+
|
61 |
+
demo.launch()
|