Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -227,7 +227,11 @@ with tab5:
|
|
| 227 |
|
| 228 |
|
| 229 |
if st.button("Update application"):
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|