datbkpro commited on
Commit
299101c
·
verified ·
1 Parent(s): 9170293

Update services/sambanova_voice_service.py

Browse files
Files changed (1) hide show
  1. services/sambanova_voice_service.py +13 -2
services/sambanova_voice_service.py CHANGED
@@ -117,8 +117,19 @@ class SambanovaVoiceService:
117
  ),
118
  mode="send",
119
  modality="audio",
120
- additional_inputs=[chatbot, conversation_state],
121
- additional_outputs=[chatbot, conversation_state],
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  additional_outputs_handler=lambda chatbot, state, new_chatbot, new_state: (new_chatbot, new_state),
124
  concurrency_limit=3,
 
117
  ),
118
  mode="send",
119
  modality="audio",
120
+ additional_inputs=[
121
+ gr.Chatbot(
122
+ type="messages",
123
+ value=[],
124
+ label="💬 Voice Conversation",
125
+ height=400
126
+ ),
127
+ gr.State(value=[])
128
+ ],
129
+ additional_outputs=[
130
+ gr.Chatbot(type="messages", value=[]),
131
+ gr.State(value=[])
132
+ ],
133
 
134
  additional_outputs_handler=lambda chatbot, state, new_chatbot, new_state: (new_chatbot, new_state),
135
  concurrency_limit=3,