Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|