Spaces:
Sleeping
Sleeping
reset chat history when clear
Browse files
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])
|