Update app.py
Browse files
app.py
CHANGED
@@ -284,8 +284,10 @@ def main():
|
|
284 |
with gr.Tab("References"):
|
285 |
doc_citation = gr.HTML("<p>References used in answering the question will be displayed below.</p>")
|
286 |
|
287 |
-
user_txt.submit(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot])
|
288 |
-
submit_btn.click(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot])
|
|
|
|
|
289 |
clear_btn.click(lambda: None, None, chatbot, queue=False)
|
290 |
|
291 |
demo.launch()
|
|
|
284 |
with gr.Tab("References"):
|
285 |
doc_citation = gr.HTML("<p>References used in answering the question will be displayed below.</p>")
|
286 |
|
287 |
+
#user_txt.submit(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot])
|
288 |
+
#submit_btn.click(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot])
|
289 |
+
user_txt.submit(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot, doc_citation])
|
290 |
+
submit_btn.click(check_input_text, user_txt, None).success(add_text, [chatbot, user_txt], [chatbot, user_txt]).then(bot_kadi, [chatbot], [chatbot, doc_citation])
|
291 |
clear_btn.click(lambda: None, None, chatbot, queue=False)
|
292 |
|
293 |
demo.launch()
|