bupa1018 commited on
Commit
50a81da
·
verified ·
1 Parent(s): 50a4519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,8 +100,8 @@ def main():
100
  submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
101
  .then(kadi_bot.handle_chat, [chat_history], [chatbot])
102
  clear_btn.click(
103
- lambda: ([], "", ""), # Reset chat history, chatbot, and user text
104
- None,
105
  [chat_history, chatbot, user_txt],
106
  queue=False
107
  )
 
100
  submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
101
  .then(kadi_bot.handle_chat, [chat_history], [chatbot])
102
  clear_btn.click(
103
+ lambda: ([],), # Reset chat history
104
+ None,
105
  [chat_history, chatbot, user_txt],
106
  queue=False
107
  )