James McCool commited on
Commit
5b393f0
·
1 Parent(s): a2e8e4e

Refactor data loading section in app.py by replacing the form with a container for improved layout flexibility, while maintaining the functionality of view and site selection dropdowns.

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -247,13 +247,12 @@ with col1:
247
  for key in st.session_state.keys():
248
  del st.session_state[key]
249
  with col2:
250
- with st.form("Data Load"):
251
  col1, col2 = st.columns([3, 3])
252
  with col1:
253
  view_var = st.selectbox("Select view", ["Simple", "Advanced"], key='view_var')
254
  with col2:
255
  site_var = st.selectbox("What site do you want to view?", ('Draftkings', 'Fanduel'), key='site_var')
256
- submit_button = st.form_submit_button("Submit")
257
 
258
 
259
  tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])
 
247
  for key in st.session_state.keys():
248
  del st.session_state[key]
249
  with col2:
250
+ with st.container():
251
  col1, col2 = st.columns([3, 3])
252
  with col1:
253
  view_var = st.selectbox("Select view", ["Simple", "Advanced"], key='view_var')
254
  with col2:
255
  site_var = st.selectbox("What site do you want to view?", ('Draftkings', 'Fanduel'), key='site_var')
 
256
 
257
 
258
  tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])