Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def main():
|
|
90 |
)
|
91 |
|
92 |
# Use the state to persist chat history between interactions
|
93 |
-
submit_btn.click(add_text_to_chatbot, [chat_history, user_txt], [
|
94 |
.then(bot_kadi, [chat_history], [chatbot])
|
95 |
|
96 |
clear_btn.click(lambda: ([], ""), None, [chat_history, chatbot, user_txt])
|
|
|
90 |
)
|
91 |
|
92 |
# Use the state to persist chat history between interactions
|
93 |
+
submit_btn.click(add_text_to_chatbot, [chat_history, user_txt], [chat_history, user_txt])\
|
94 |
.then(bot_kadi, [chat_history], [chatbot])
|
95 |
|
96 |
clear_btn.click(lambda: ([], ""), None, [chat_history, chatbot, user_txt])
|