MikkelONielsen commited on
Commit
dfb08e7
·
verified ·
1 Parent(s): af1d79c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -227,7 +227,11 @@ with tab5:
227
 
228
 
229
  if st.button("Update application"):
230
- st.rerun()
 
 
 
 
231
  # values cannot be used in st.session_state!!
232
  #if 'my_values' not in st.session_state:
233
  #st.session_state.my_values = list()
 
227
 
228
 
229
  if st.button("Update application"):
230
+ # Clear cached data
231
+ st.cache_data.clear()
232
+ # Immediately rerun the application
233
+ st.experimental_rerun()
234
+ #st.rerun()
235
  # values cannot be used in st.session_state!!
236
  #if 'my_values' not in st.session_state:
237
  #st.session_state.my_values = list()