afouda commited on
Commit
5723a6c
·
verified ·
1 Parent(s): f9fa2e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -236,11 +236,11 @@ with gr.Blocks(title="Wisal Chatbot", theme=gr.themes.Base()) as demo:
236
  label="Document Type"
237
  )
238
 
239
- send_btn.click(
240
- fn=pipeline_with_history,
241
- inputs=[user_input, doc_file, doc_type, chatbot],
242
- outputs=[chatbot, user_input]
243
- )
244
 
245
  clear_btn = gr.Button("Clear Chat")
246
  clear_btn.click(lambda: [], outputs=[chatbot])
 
236
  label="Document Type"
237
  )
238
 
239
+ send_btn.click(
240
+ fn=pipeline_with_history,
241
+ inputs=[user_input, doc_file, doc_type, chatbot],
242
+ outputs=[chatbot, user_input]
243
+ )
244
 
245
  clear_btn = gr.Button("Clear Chat")
246
  clear_btn.click(lambda: [], outputs=[chatbot])