farmax commited on
Commit
95812af
1 Parent(s): ab0e4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -143,11 +143,7 @@ def demo():
143
 
144
  submit_btn.click(conversation, inputs=[qa_chain, msg, chatbot], outputs=[qa_chain, msg, chatbot] + doc_sources + source_pages)
145
  msg.submit(conversation, inputs=[qa_chain, msg, chatbot], outputs=[qa_chain, msg, chatbot] + doc_sources + source_pages)
146
- clear_btn.click(
147
- clear_conversation,
148
- inputs=[],
149
- outputs=[chatbot] + doc_sources + source_pages
150
- )
151
 
152
  demo.queue().launch(debug=True)
153
 
 
143
 
144
  submit_btn.click(conversation, inputs=[qa_chain, msg, chatbot], outputs=[qa_chain, msg, chatbot] + doc_sources + source_pages)
145
  msg.submit(conversation, inputs=[qa_chain, msg, chatbot], outputs=[qa_chain, msg, chatbot] + doc_sources + source_pages)
146
+ clear_btn.click(clear_conversation, inputs=[], outputs=[chatbot] + doc_sources + source_pages)
 
 
 
 
147
 
148
  demo.queue().launch(debug=True)
149