Spaces:
Runtime error
Runtime error
Commit
·
153e8b3
1
Parent(s):
3a91f8d
update cllear audio
Browse files
app.py
CHANGED
|
@@ -869,6 +869,8 @@ def HMI_Wait():
|
|
| 869 |
|
| 870 |
|
| 871 |
def ClearAudio():
|
|
|
|
|
|
|
| 872 |
return None
|
| 873 |
|
| 874 |
with gr.Blocks() as demo:
|
|
@@ -953,7 +955,9 @@ with gr.Blocks() as demo:
|
|
| 953 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 954 |
agentchoice.change(SetAgent, agentchoice, None)
|
| 955 |
frash_logs.click(read_logs, None, logs)
|
| 956 |
-
voice_output.end(ClearAudio, None, voice_output)
|
|
|
|
|
|
|
| 957 |
# demo.load(read_logs, None, logs, every=1)
|
| 958 |
|
| 959 |
|
|
|
|
| 869 |
|
| 870 |
|
| 871 |
def ClearAudio():
|
| 872 |
+
print("clear audio ...")
|
| 873 |
+
|
| 874 |
return None
|
| 875 |
|
| 876 |
with gr.Blocks() as demo:
|
|
|
|
| 955 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 956 |
agentchoice.change(SetAgent, agentchoice, None)
|
| 957 |
frash_logs.click(read_logs, None, logs)
|
| 958 |
+
# voice_output.end(ClearAudio, None, voice_output)
|
| 959 |
+
voice_output.end(voice_output.clear, None, None)
|
| 960 |
+
|
| 961 |
# demo.load(read_logs, None, logs, every=1)
|
| 962 |
|
| 963 |
|