Update src/app.py
Browse files- src/app.py +1 -1
src/app.py
CHANGED
@@ -10,7 +10,7 @@ with demo:
|
|
10 |
submit_button.click(pdf_chatbot.add_text, inputs=[chat_history, txt], outputs=[chat_history], queue=False).\
|
11 |
success(pdf_chatbot.generate_response, inputs=[chat_history, txt, uploaded_pdf,slider_chunk_size,slider_overlap_percentage,slider_temp,slider_k], outputs=[chat_history,txt]).\
|
12 |
success(pdf_chatbot.render_file, inputs=[uploaded_pdf], outputs=[show_img])
|
13 |
-
download_chat_history.click(fn=download_chat_history, inputs=[chat_history], outputs="
|
14 |
|
15 |
if __name__ == "__main__":
|
16 |
demo.launch()
|
|
|
10 |
submit_button.click(pdf_chatbot.add_text, inputs=[chat_history, txt], outputs=[chat_history], queue=False).\
|
11 |
success(pdf_chatbot.generate_response, inputs=[chat_history, txt, uploaded_pdf,slider_chunk_size,slider_overlap_percentage,slider_temp,slider_k], outputs=[chat_history,txt]).\
|
12 |
success(pdf_chatbot.render_file, inputs=[uploaded_pdf], outputs=[show_img])
|
13 |
+
download_chat_history.click(fn=download_chat_history, inputs=[chat_history], outputs=gr.outputs.File("chat_history.csv"))
|
14 |
|
15 |
if __name__ == "__main__":
|
16 |
demo.launch()
|