MikkelONielsen commited on
Commit
4ec0bec
1 Parent(s): dfb08e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -107,6 +107,12 @@ with tab1:
107
  bikelane_new = bikelane_new.set_index(['Time'])
108
  st.dataframe(bikelane_new[['Status']].tail(5))
109
 
 
 
 
 
 
 
110
  with tab2:
111
  def explore_magnetic_field(model, x, y, z):
112
  input_list = [x, y, z]
@@ -226,11 +232,7 @@ with tab5:
226
  #st.dataframe(bikelane_new[['prediction']].tail(5).style.applymap(color_prediction, subset=['prediction']))
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:
 
107
  bikelane_new = bikelane_new.set_index(['Time'])
108
  st.dataframe(bikelane_new[['Status']].tail(5))
109
 
110
+ if st.button("Update application"):
111
+ # Clear cached data
112
+ st.cache_data.clear()
113
+ # Immediately rerun the application
114
+ st.experimental_rerun()
115
+
116
  with tab2:
117
  def explore_magnetic_field(model, x, y, z):
118
  input_list = [x, y, z]
 
232
  #st.dataframe(bikelane_new[['prediction']].tail(5).style.applymap(color_prediction, subset=['prediction']))
233
 
234
 
235
+ #if st.button("Update application"):
 
 
 
 
236
  #st.rerun()
237
  # values cannot be used in st.session_state!!
238
  #if 'my_values' not in st.session_state: