bupa1018 commited on
Commit
9dc50ee
·
verified ·
1 Parent(s): c040269

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -100,6 +100,11 @@ 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(clear_history, inputs = [chat_history], outputs =chat_history)
 
 
 
 
 
103
  demo.launch()
104
 
105
 
 
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(clear_history, inputs = [chat_history], outputs =chat_history)
103
+ clear_button.click(
104
+ lambda _: 0,
105
+ [chat_history],
106
+ [chat_history],
107
+ )
108
  demo.launch()
109
 
110