Multichem commited on
Commit
05a4d6b
·
verified ·
1 Parent(s): 366744c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -126,7 +126,7 @@ def load_bo1_proj_model(URL):
126
  return raw_display
127
 
128
  @st.cache_data
129
- def load_bo2_proj_model(URL):
130
  sh = gc.open_by_url(URL)
131
  worksheet = sh.worksheet('2_map_projections')
132
  raw_display = pd.DataFrame(worksheet.get_all_records())
@@ -270,7 +270,7 @@ with tab5:
270
  # Clear values from *all* all in-memory and on-disk data caches:
271
  # i.e. clear values from both square and cube
272
  st.cache_data.clear()
273
- hold_display = load_slate_baselines(two_map)
274
  display = hold_display.set_index('Player')
275
  st.dataframe(display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
276
  st.download_button(
 
126
  return raw_display
127
 
128
  @st.cache_data
129
+ def two_map_load(URL):
130
  sh = gc.open_by_url(URL)
131
  worksheet = sh.worksheet('2_map_projections')
132
  raw_display = pd.DataFrame(worksheet.get_all_records())
 
270
  # Clear values from *all* all in-memory and on-disk data caches:
271
  # i.e. clear values from both square and cube
272
  st.cache_data.clear()
273
+ hold_display = two_map_load(two_map)
274
  display = hold_display.set_index('Player')
275
  st.dataframe(display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
276
  st.download_button(