Gyr0MAN commited on
Commit
c91f1a6
·
verified ·
1 Parent(s): 7d2e700

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
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
- while True:
53
- time.sleep(5.0)
54
- # abortable.abort()
 
 
 
 
 
 
 
 
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()