demirali commited on
Commit
a257577
·
verified ·
1 Parent(s): bbdd132

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.experimental_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:
 
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: