Spaces:
Runtime error
Runtime error
Commit
·
800a13b
1
Parent(s):
66eba67
Remove User Buzzing & Print Statements
Browse files
app.py
CHANGED
@@ -33,7 +33,6 @@ def idle_timer():
|
|
33 |
global BUZZ_TIMEOUT
|
34 |
|
35 |
while True:
|
36 |
-
print('started countdown')
|
37 |
time.sleep(BUZZ_TIMEOUT)
|
38 |
buzz_user()
|
39 |
|
@@ -102,7 +101,7 @@ def get_response(history, audio_input):
|
|
102 |
|
103 |
return history, AUDIO_HTML
|
104 |
|
105 |
-
buzz_usr_proc = Thread(target=idle_timer)
|
106 |
|
107 |
with gr.Blocks(title="Your Assistance Pal!") as demo:
|
108 |
|
@@ -128,6 +127,6 @@ with gr.Blocks(title="Your Assistance Pal!") as demo:
|
|
128 |
).then(get_response, [chatbot, audio_input], [chatbot, output_html]
|
129 |
).then(update_img, outputs=[assistant_character])
|
130 |
|
131 |
-
buzz_usr_proc.start()
|
132 |
|
133 |
demo.launch(debug=False, favicon_path='assets/favicon.png', show_api=False, share=True)
|
|
|
33 |
global BUZZ_TIMEOUT
|
34 |
|
35 |
while True:
|
|
|
36 |
time.sleep(BUZZ_TIMEOUT)
|
37 |
buzz_user()
|
38 |
|
|
|
101 |
|
102 |
return history, AUDIO_HTML
|
103 |
|
104 |
+
# buzz_usr_proc = Thread(target=idle_timer)
|
105 |
|
106 |
with gr.Blocks(title="Your Assistance Pal!") as demo:
|
107 |
|
|
|
127 |
).then(get_response, [chatbot, audio_input], [chatbot, output_html]
|
128 |
).then(update_img, outputs=[assistant_character])
|
129 |
|
130 |
+
# buzz_usr_proc.start()
|
131 |
|
132 |
demo.launch(debug=False, favicon_path='assets/favicon.png', show_api=False, share=True)
|