Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ with gr.Blocks() as demo:
|
|
270 |
audio_inputs.change(transcribe_speech, [open_ai_key, audio_inputs, asr_type], [msg_txt]) # 录音输入
|
271 |
chat_bu.click(get_response,
|
272 |
[open_ai_key, msg_txt, chat_bot, doc_text_state, doc_emb_state, query_engine, index_type],
|
273 |
-
[chat_bot])#
|
274 |
|
275 |
if __name__ == "__main__":
|
276 |
demo.queue(concurrency_count=4).launch()
|
|
|
270 |
audio_inputs.change(transcribe_speech, [open_ai_key, audio_inputs, asr_type], [msg_txt]) # 录音输入
|
271 |
chat_bu.click(get_response,
|
272 |
[open_ai_key, msg_txt, chat_bot, doc_text_state, doc_emb_state, query_engine, index_type],
|
273 |
+
[chat_bot])# .then(get_audio_answer, [chat_bot], [audio_answer]) # 发送消息
|
274 |
|
275 |
if __name__ == "__main__":
|
276 |
demo.queue(concurrency_count=4).launch()
|