Spaces:
Sleeping
Sleeping
Update app/gradio_app.py
Browse files- app/gradio_app.py +3 -2
app/gradio_app.py
CHANGED
|
@@ -325,6 +325,7 @@ def build_demo():
|
|
| 325 |
on_voice_change,
|
| 326 |
inputs=[voice_in, voice_state],
|
| 327 |
outputs=[voice_chat, assistant_audio, call_diag],
|
|
|
|
| 328 |
).then(
|
| 329 |
_clear_recorder, # runs AFTER outputs are set → autoplay isn’t interrupted
|
| 330 |
inputs=None,
|
|
@@ -335,7 +336,7 @@ def build_demo():
|
|
| 335 |
on_voice_change,
|
| 336 |
inputs=[voice_in, voice_state],
|
| 337 |
outputs=[voice_chat, assistant_audio, call_diag],
|
| 338 |
-
api_name="
|
| 339 |
).then(
|
| 340 |
_clear_recorder,
|
| 341 |
inputs=None,
|
|
@@ -350,7 +351,7 @@ def build_demo():
|
|
| 350 |
on_text_send,
|
| 351 |
inputs=[text_in, chat_state],
|
| 352 |
outputs=[chat_box, chat_diag, text_in],
|
| 353 |
-
api_name="
|
| 354 |
)
|
| 355 |
# Keep chat_state in sync with what's shown in chat_box
|
| 356 |
chat_box.change(lambda x: x, inputs=[chat_box], outputs=[chat_state])
|
|
|
|
| 325 |
on_voice_change,
|
| 326 |
inputs=[voice_in, voice_state],
|
| 327 |
outputs=[voice_chat, assistant_audio, call_diag],
|
| 328 |
+
api_name="chat_voice", # <— add this
|
| 329 |
).then(
|
| 330 |
_clear_recorder, # runs AFTER outputs are set → autoplay isn’t interrupted
|
| 331 |
inputs=None,
|
|
|
|
| 336 |
on_voice_change,
|
| 337 |
inputs=[voice_in, voice_state],
|
| 338 |
outputs=[voice_chat, assistant_audio, call_diag],
|
| 339 |
+
api_name="chat_voice", # <— add this
|
| 340 |
).then(
|
| 341 |
_clear_recorder,
|
| 342 |
inputs=None,
|
|
|
|
| 351 |
on_text_send,
|
| 352 |
inputs=[text_in, chat_state],
|
| 353 |
outputs=[chat_box, chat_diag, text_in],
|
| 354 |
+
api_name="chat_text", # <— add this
|
| 355 |
)
|
| 356 |
# Keep chat_state in sync with what's shown in chat_box
|
| 357 |
chat_box.change(lambda x: x, inputs=[chat_box], outputs=[chat_state])
|