Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -145,6 +145,8 @@ with gr.Blocks() as demo:
|
|
145 |
# Set up event handlers
|
146 |
load_btn.click(load_documents, inputs=[file_input], outputs=[load_output])
|
147 |
|
|
|
|
|
148 |
# Event handler for audio input to directly trigger processing and chat response
|
149 |
audio_input.change(perform_rag, inputs=[msg, chatbot, audio_input, translate_checkbox], outputs=[chatbot])
|
150 |
|
|
|
145 |
# Set up event handlers
|
146 |
load_btn.click(load_documents, inputs=[file_input], outputs=[load_output])
|
147 |
|
148 |
+
msg.submit(perform_rag, inputs=[msg, chatbot, None, False], outputs=[chatbot])
|
149 |
+
|
150 |
# Event handler for audio input to directly trigger processing and chat response
|
151 |
audio_input.change(perform_rag, inputs=[msg, chatbot, audio_input, translate_checkbox], outputs=[chatbot])
|
152 |
|