abnerguzman commited on
Commit
c914fb5
1 Parent(s): e883152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
86
  yield history
87
 
88
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(bot, [chatbot, chat_engine_var], chatbot)
89
- clear.click(lambda: chat_engine_var.reset(), None, chatbot, queue=False)
90
 
91
  if __name__ == "__main__":
92
  demo.queue()
 
86
  yield history
87
 
88
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(bot, [chatbot, chat_engine_var], chatbot)
89
+ clear.click(lambda x: x.reset(), chat_engine_var, chatbot, queue=False)
90
 
91
  if __name__ == "__main__":
92
  demo.queue()