Update app.py
Browse files
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 |
-
|
241 |
-
|
242 |
-
|
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])
|