ababio commited on
Commit
ee62985
·
verified ·
1 Parent(s): ca2edb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -68,8 +68,7 @@ if "messages" not in st.session_state:
68
 
69
  # Clear chat button
70
  if st.sidebar.button("Clear Chat"):
71
- st.session_state.messages = []
72
- st.experimental_rerun()
73
 
74
  # Display chat messages from history
75
  for message in st.session_state.messages:
 
68
 
69
  # Clear chat button
70
  if st.sidebar.button("Clear Chat"):
71
+ st.session_state.messages.clear()
 
72
 
73
  # Display chat messages from history
74
  for message in st.session_state.messages: