Spaces:
Running
Running
James McCool
commited on
Commit
·
08d71e4
1
Parent(s):
b206444
Remove redundant submit buttons from radio selection forms in app.py, streamlining user interactions and enhancing the overall UI experience.
Browse files
app.py
CHANGED
@@ -149,7 +149,6 @@ with tab1:
|
|
149 |
with st.container():
|
150 |
slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Secondary Slate', 'All Games'))
|
151 |
own_var1 = st.radio("How would you like to display team ownership?", ('Sum', 'Average'))
|
152 |
-
submit_button = st.form_submit_button("Submit")
|
153 |
st.title("Scoring Percentages")
|
154 |
if view_var == "Simple":
|
155 |
scoring_percentages = scoring_percentages[['Names', 'Avg Score', '8+ runs', 'Win Percentage']]
|
@@ -164,7 +163,6 @@ with tab2:
|
|
164 |
slate_type_var2 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'))
|
165 |
slate_var2 = st.radio("Which slate data are you loading?", ('Main', 'Secondary', 'Auxiliary'))
|
166 |
pos_var2 = st.radio("Which position group would you like to view?", ('All', 'Pitchers', 'Hitters'))
|
167 |
-
submit_button = st.form_submit_button("Submit")
|
168 |
if slate_type_var2 == 'Regular':
|
169 |
player_roo_raw = roo_data.copy()
|
170 |
if site_var == 'Draftkings':
|
@@ -212,7 +210,6 @@ with tab3:
|
|
212 |
with st.container():
|
213 |
slate_type_var3 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'))
|
214 |
slate_var3 = st.radio("Which slate data are you loading?", ('Main', 'Secondary', 'Auxiliary'))
|
215 |
-
submit_button = st.form_submit_button("Submit")
|
216 |
|
217 |
if slate_type_var3 == 'Regular':
|
218 |
if site_var == 'Draftkings':
|
|
|
149 |
with st.container():
|
150 |
slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Secondary Slate', 'All Games'))
|
151 |
own_var1 = st.radio("How would you like to display team ownership?", ('Sum', 'Average'))
|
|
|
152 |
st.title("Scoring Percentages")
|
153 |
if view_var == "Simple":
|
154 |
scoring_percentages = scoring_percentages[['Names', 'Avg Score', '8+ runs', 'Win Percentage']]
|
|
|
163 |
slate_type_var2 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'))
|
164 |
slate_var2 = st.radio("Which slate data are you loading?", ('Main', 'Secondary', 'Auxiliary'))
|
165 |
pos_var2 = st.radio("Which position group would you like to view?", ('All', 'Pitchers', 'Hitters'))
|
|
|
166 |
if slate_type_var2 == 'Regular':
|
167 |
player_roo_raw = roo_data.copy()
|
168 |
if site_var == 'Draftkings':
|
|
|
210 |
with st.container():
|
211 |
slate_type_var3 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'))
|
212 |
slate_var3 = st.radio("Which slate data are you loading?", ('Main', 'Secondary', 'Auxiliary'))
|
|
|
213 |
|
214 |
if slate_type_var3 == 'Regular':
|
215 |
if site_var == 'Draftkings':
|