Spaces:
Running
Running
Update app.py
Browse files
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 |
|