bupa1018 commited on
Commit
9f6f379
·
verified ·
1 Parent(s): 8785db1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.bot_kadi, [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.bot_kadi, [chat_history], [chatbot])
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,