Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,9 +97,9 @@ def main():
|
|
97 |
|
98 |
# Use the state to persist chat history between interactions
|
99 |
user_txt.submit(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
100 |
-
.then(kadi_bot.
|
101 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
102 |
-
.then(kadi_bot.
|
103 |
clear_btn.click(
|
104 |
reset_all,
|
105 |
None,
|
|
|
97 |
|
98 |
# Use the state to persist chat history between interactions
|
99 |
user_txt.submit(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
100 |
+
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
101 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
102 |
+
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
103 |
clear_btn.click(
|
104 |
reset_all,
|
105 |
None,
|