maulana-m commited on
Commit
f41b192
·
1 Parent(s): 4f9376a

reset chat history when clear

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -121,6 +121,7 @@ with gr.Blocks() as demo:
121
 
122
  clear.click(lambda: None, None, chatbot, queue=False)
123
  clear.click(lambda: None, None, session_id, queue=False)
 
124
 
125
  send.click(respond, [chatbot, message, state, session_id, user_serial, persona, context, endpoint], [chatbot, state, status_box, session, session_id])
126
  send.click(reset_textbox, [], [message])
 
121
 
122
  clear.click(lambda: None, None, chatbot, queue=False)
123
  clear.click(lambda: None, None, session_id, queue=False)
124
+ clear.click(lambda: None, None, state, queue=False)
125
 
126
  send.click(respond, [chatbot, message, state, session_id, user_serial, persona, context, endpoint], [chatbot, state, status_box, session, session_id])
127
  send.click(reset_textbox, [], [message])