James McCool commited on
Commit
f5d67d4
·
1 Parent(s): 0841c51

Update selectbox options and add keys for state management in app.py

Browse files

- Modified the selectbox options for sport selection to include specific sports (MLB, NBA, NFL) for better user guidance.
- Added unique keys to selectboxes to enhance state management within the Streamlit app, ensuring consistent behavior across user interactions.

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,11 +48,11 @@ with tab1:
48
  st.session_state.clear()
49
  col1, col2, col3 = st.columns(3)
50
  with col1:
51
- parse_type = st.selectbox("Manual upload or DB search?", ['Manual', 'DB Search'])
52
  with col2:
53
- sport_select = st.selectbox("Select Game Type", ['Classic', 'Showdown'])
54
  with col3:
55
- type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'])
56
  # Add file uploaders to your app
57
  col1, col2 = st.columns(2)
58
 
 
48
  st.session_state.clear()
49
  col1, col2, col3 = st.columns(3)
50
  with col1:
51
+ parse_type = st.selectbox("Manual upload or DB search?", ['Manual', 'DB Search'], key='parse_type')
52
  with col2:
53
+ sport_select = st.selectbox("Select Sport", ['MLB', 'NBA', 'NFL'], key='sport_select')
54
  with col3:
55
+ type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
56
  # Add file uploaders to your app
57
  col1, col2 = st.columns(2)
58