Spaces:
Runtime error
Runtime error
Commit
·
ecc6c2f
1
Parent(s):
153e8b3
update sound
Browse files
app.py
CHANGED
@@ -956,7 +956,11 @@ with gr.Blocks() as demo:
|
|
956 |
agentchoice.change(SetAgent, agentchoice, None)
|
957 |
frash_logs.click(read_logs, None, logs)
|
958 |
# voice_output.end(ClearAudio, None, voice_output)
|
959 |
-
|
|
|
|
|
|
|
|
|
960 |
|
961 |
# demo.load(read_logs, None, logs, every=1)
|
962 |
|
|
|
956 |
agentchoice.change(SetAgent, agentchoice, None)
|
957 |
frash_logs.click(read_logs, None, logs)
|
958 |
# voice_output.end(ClearAudio, None, voice_output)
|
959 |
+
def clear_voice():
|
960 |
+
print("clear audio ...")
|
961 |
+
voice_output.clear()
|
962 |
+
|
963 |
+
voice_output.end(clear_voice, None, None)
|
964 |
|
965 |
# demo.load(read_logs, None, logs, every=1)
|
966 |
|