Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def main():
|
|
95 |
)
|
96 |
|
97 |
# Use the state to persist chat history between interactions
|
98 |
-
submit_btn.click(add_text_to_chatbot, [chat_history, user_txt], [chat_history, user_txt]).then(show_history,[chat_history], [chatbot]
|
99 |
.then(bot_kadi, [chat_history], [chatbot])
|
100 |
|
101 |
clear_btn.click(lambda: ([], ""), None, [chat_history, chatbot, user_txt])
|
|
|
95 |
)
|
96 |
|
97 |
# Use the state to persist chat history between interactions
|
98 |
+
submit_btn.click(add_text_to_chatbot, [chat_history, user_txt], [chat_history, user_txt]).then(show_history,[chat_history], [chatbot])
|
99 |
.then(bot_kadi, [chat_history], [chatbot])
|
100 |
|
101 |
clear_btn.click(lambda: ([], ""), None, [chat_history, chatbot, user_txt])
|