Spaces:
Runtime error
Runtime error
Commit
·
ffa907c
1
Parent(s):
3744ac2
fix bug sound
Browse files
app.py
CHANGED
@@ -907,7 +907,7 @@ with gr.Blocks() as demo:
|
|
907 |
source="microphone",
|
908 |
type="filepath",
|
909 |
scale= 1,
|
910 |
-
interactive=
|
911 |
autoplay= True,
|
912 |
label= "OUTPUT",
|
913 |
)
|
@@ -932,11 +932,11 @@ with gr.Blocks() as demo:
|
|
932 |
# then(playsound, None, voice_output).\
|
933 |
# then(HMI_Wait, None, [submit_button, stop_button])
|
934 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
935 |
-
|
936 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
941 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
942 |
stop_button.click(read_logs, None, logs, cancels=[inf4,inf3]).\
|
|
|
907 |
source="microphone",
|
908 |
type="filepath",
|
909 |
scale= 1,
|
910 |
+
interactive=True,
|
911 |
autoplay= True,
|
912 |
label= "OUTPUT",
|
913 |
)
|
|
|
932 |
# then(playsound, None, voice_output).\
|
933 |
# then(HMI_Wait, None, [submit_button, stop_button])
|
934 |
inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
|
935 |
+
success(playsound, None, voice_output)
|
936 |
inf3 = submit_button.click(chathmi3, [inputtext, chatbot], [inputtext, chatbot]).\
|
937 |
+
success(HMI_Runing, None, [submit_button, stop_button]).\
|
938 |
+
success(playsound, None, voice_output).\
|
939 |
+
success(HMI_Wait, None, [submit_button, stop_button])
|
940 |
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
941 |
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
942 |
stop_button.click(read_logs, None, logs, cancels=[inf4,inf3]).\
|