Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def load_bo1_proj_model(URL):
|
|
| 126 |
return raw_display
|
| 127 |
|
| 128 |
@st.cache_data
|
| 129 |
-
def
|
| 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 =
|
| 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(
|