rkoushikroy2 commited on
Commit
a4b9f57
·
1 Parent(s): 2f18584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -62,6 +62,8 @@ with gr.Blocks() as app:
62
  )
63
  submit.click(user, [msg, chatbot], [msg, chatbot], queue=False).then(
64
  bot, [chatbot, session_data], [chatbot, session_data]
 
 
65
  )
66
  clear.click(
67
  fn = clear_data,
 
62
  )
63
  submit.click(user, [msg, chatbot], [msg, chatbot], queue=False).then(
64
  bot, [chatbot, session_data], [chatbot, session_data]
65
+ ).then(
66
+ fn = reset_memory, inputs = session_data, outputs = session_data
67
  )
68
  clear.click(
69
  fn = clear_data,