bupa1018 commited on
Commit
52e224d
·
verified ·
1 Parent(s): aa44036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def main():
99
  .then(kadi_bot.handle_chat, [chat_history], [chatbot])
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
-
103
  demo.launch()
104
 
105
 
 
99
  .then(kadi_bot.handle_chat, [chat_history], [chatbot])
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(lambda: ("",), [], [user_txt])
103
  demo.launch()
104
 
105