Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ if 'initialized' not in st.session_state:
|
|
77 |
if st.button("Clear Chat History"):
|
78 |
if 'memory' in st.session_state:
|
79 |
st.session_state.memory.clear()
|
80 |
-
st.
|
81 |
|
82 |
# Display chat history if initialized
|
83 |
if st.session_state.initialized and 'memory' in st.session_state:
|
|
|
77 |
if st.button("Clear Chat History"):
|
78 |
if 'memory' in st.session_state:
|
79 |
st.session_state.memory.clear()
|
80 |
+
st.rerun() # Refresh the app to reflect the cleared history
|
81 |
|
82 |
# Display chat history if initialized
|
83 |
if st.session_state.initialized and 'memory' in st.session_state:
|