Spaces:
Runtime error
Runtime error
Commit
·
36aeae9
1
Parent(s):
29844b7
update UI function
Browse files
app.py
CHANGED
@@ -920,10 +920,10 @@ with gr.Blocks() as demo:
|
|
920 |
retry_button.click(retry, chatbot, chatbot)
|
921 |
# inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
922 |
# then(playsound, None, voice_output)
|
923 |
-
inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
928 |
then(playsound, None, voice_output)
|
929 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
@@ -932,7 +932,7 @@ with gr.Blocks() as demo:
|
|
932 |
then(HMI_Wait, None, [submit_button, stop_button])
|
933 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
934 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
935 |
-
stop_button.click(read_logs, None, logs, cancels=[
|
936 |
then(HMI_Wait, None, [submit_button, stop_button])
|
937 |
# stop_button.click(read_logs, None, logs, cancels=[inf2])
|
938 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
|
|
920 |
retry_button.click(retry, chatbot, chatbot)
|
921 |
# inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
922 |
# then(playsound, None, voice_output)
|
923 |
+
# inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
924 |
+
# then(HMI_Runing, None, [submit_button, stop_button]).\
|
925 |
+
# then(playsound, None, voice_output).\
|
926 |
+
# then(HMI_Wait, None, [submit_button, stop_button])
|
927 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
928 |
then(playsound, None, voice_output)
|
929 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
|
|
932 |
then(HMI_Wait, None, [submit_button, stop_button])
|
933 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
934 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
935 |
+
stop_button.click(read_logs, None, logs, cancels=[inf4,inf3]).\
|
936 |
then(HMI_Wait, None, [submit_button, stop_button])
|
937 |
# stop_button.click(read_logs, None, logs, cancels=[inf2])
|
938 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|