Skip to content

Commit

Permalink
minor page switching changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankdeshpande committed Jul 14, 2023
1 parent f850c60 commit cf91e93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def enable_chat_history(func):
st.session_state["current_page"] = current_page
if st.session_state["current_page"] != current_page:
try:
st.cache_resource.clear()
del st.session_state["current_page"]
del st.session_state["messages"]
except:
pass
Expand Down

0 comments on commit cf91e93

Please sign in to comment.