Spaces:
Runtime error
Runtime error
Commit
·
569bae0
1
Parent(s):
3a7d53a
remove clear
Browse files
app.py
CHANGED
@@ -1054,12 +1054,12 @@ with gr.Blocks() as demo:
|
|
1054 |
# inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button])
|
1055 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
1056 |
success(playsound1, None, voice_output).\
|
1057 |
-
success(ClearAudio, None, voice_output)
|
1058 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
1059 |
success(HMI_Runing, None, [submit_button, stop_button]).\
|
1060 |
success(playsound1, None, voice_output).\
|
1061 |
success(HMI_Wait, None, [submit_button, stop_button]).\
|
1062 |
-
success(ClearAudio, None, voice_output)
|
1063 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
1064 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
1065 |
stop_button.click(read_logs, None, logs, cancels=[inf4,inf3]).\
|
|
|
1054 |
# inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button])
|
1055 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
1056 |
success(playsound1, None, voice_output).\
|
1057 |
+
# success(ClearAudio, None, voice_output)
|
1058 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
1059 |
success(HMI_Runing, None, [submit_button, stop_button]).\
|
1060 |
success(playsound1, None, voice_output).\
|
1061 |
success(HMI_Wait, None, [submit_button, stop_button]).\
|
1062 |
+
# success(ClearAudio, None, voice_output)
|
1063 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
1064 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
1065 |
stop_button.click(read_logs, None, logs, cancels=[inf4,inf3]).\
|