Spaces:
Sleeping
Sleeping
Akis Giannoukos
commited on
Commit
·
4237157
1
Parent(s):
0b08793
Update audio handling to stop recording during demo interactions
Browse files
app.py
CHANGED
|
@@ -648,7 +648,7 @@ def create_demo():
|
|
| 648 |
demo.load(_on_load_init, inputs=None, outputs=[chatbot, scores_state, meta_state, finished_state, turns_state])
|
| 649 |
|
| 650 |
# Wire interactions
|
| 651 |
-
audio_main.
|
| 652 |
fn=process_turn,
|
| 653 |
inputs=[audio_main, text_main, chatbot, threshold, tts_enable, finished_state, turns_state, scores_state, meta_state],
|
| 654 |
outputs=[chatbot, score_json, severity_label, finished_state, turns_state, audio_main, text_main, tts_audio, tts_audio_main],
|
|
|
|
| 648 |
demo.load(_on_load_init, inputs=None, outputs=[chatbot, scores_state, meta_state, finished_state, turns_state])
|
| 649 |
|
| 650 |
# Wire interactions
|
| 651 |
+
audio_main.stop_recording(
|
| 652 |
fn=process_turn,
|
| 653 |
inputs=[audio_main, text_main, chatbot, threshold, tts_enable, finished_state, turns_state, scores_state, meta_state],
|
| 654 |
outputs=[chatbot, score_json, severity_label, finished_state, turns_state, audio_main, text_main, tts_audio, tts_audio_main],
|