Spaces:
Sleeping
Sleeping
Update app/gradio_app.py
Browse files- app/gradio_app.py +2 -0
app/gradio_app.py
CHANGED
|
@@ -369,6 +369,7 @@ def build_demo():
|
|
| 369 |
on_voice_change,
|
| 370 |
inputs=[voice_in, voice_state],
|
| 371 |
outputs=[voice_chat, assistant_audio, call_diag],
|
|
|
|
| 372 |
).then(
|
| 373 |
_clear_recorder,
|
| 374 |
inputs=None,
|
|
@@ -383,6 +384,7 @@ def build_demo():
|
|
| 383 |
on_text_send,
|
| 384 |
inputs=[text_in, chat_state],
|
| 385 |
outputs=[chat_box, chat_diag, text_in],
|
|
|
|
| 386 |
)
|
| 387 |
# Keep chat_state in sync with what's shown in chat_box
|
| 388 |
chat_box.change(lambda x: x, inputs=[chat_box], outputs=[chat_state])
|
|
|
|
| 369 |
on_voice_change,
|
| 370 |
inputs=[voice_in, voice_state],
|
| 371 |
outputs=[voice_chat, assistant_audio, call_diag],
|
| 372 |
+
api_name="/voice",
|
| 373 |
).then(
|
| 374 |
_clear_recorder,
|
| 375 |
inputs=None,
|
|
|
|
| 384 |
on_text_send,
|
| 385 |
inputs=[text_in, chat_state],
|
| 386 |
outputs=[chat_box, chat_diag, text_in],
|
| 387 |
+
api_name="/text",
|
| 388 |
)
|
| 389 |
# Keep chat_state in sync with what's shown in chat_box
|
| 390 |
chat_box.change(lambda x: x, inputs=[chat_box], outputs=[chat_state])
|