Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
fa2a637
1
Parent(s):
06ef939
Reintroduce model choice radio button for ROO model display
Browse files
app.py
CHANGED
@@ -147,9 +147,10 @@ with tab2:
|
|
147 |
# Clear values from *all* all in-memory and on-disk data caches:
|
148 |
# i.e. clear values from both square and cube
|
149 |
st.cache_data.clear()
|
|
|
150 |
pos_var1 = st.selectbox('View specific position?', options = ['All', 'TOP', 'JNG', 'MID', 'ADC', 'SUP'], key = 'roo_posvar')
|
151 |
team_var1 = st.multiselect('View specific team?', options = hold_display['Team'].unique(), key = 'roo_teamvar')
|
152 |
-
hold_display = load_roo_model()
|
153 |
display = hold_display.set_index('Player')
|
154 |
if team_var1:
|
155 |
display = display[display['Team'].isin(team_var1)]
|
|
|
147 |
# Clear values from *all* all in-memory and on-disk data caches:
|
148 |
# i.e. clear values from both square and cube
|
149 |
st.cache_data.clear()
|
150 |
+
model_choice = st.radio("What table would you like to display?", ('Overall', 'Wins', 'Losses'), key='roo_table')
|
151 |
pos_var1 = st.selectbox('View specific position?', options = ['All', 'TOP', 'JNG', 'MID', 'ADC', 'SUP'], key = 'roo_posvar')
|
152 |
team_var1 = st.multiselect('View specific team?', options = hold_display['Team'].unique(), key = 'roo_teamvar')
|
153 |
+
hold_display = load_roo_model(model_choice)
|
154 |
display = hold_display.set_index('Player')
|
155 |
if team_var1:
|
156 |
display = display[display['Team'].isin(team_var1)]
|