James McCool
commited on
Commit
·
0690ce0
1
Parent(s):
31ee3cc
Enhance UI layout in app.py by adding a fourth column for improved data selection
Browse files- Updated the layout to include a fourth column in the data selection tab, allowing for a more organized interface.
- Replaced the sport selection dropdown with a date selection dropdown, enhancing user experience by providing relevant options.
- This change contributes to ongoing efforts to improve the clarity and functionality of the user interface.
app.py
CHANGED
@@ -52,12 +52,14 @@ tab1, tab2 = st.tabs(["Data Load", "Contest Analysis"])
|
|
52 |
with tab1:
|
53 |
if st.button('Clear data', key='reset1'):
|
54 |
st.session_state.clear()
|
55 |
-
col1, col2, col3 = st.columns(
|
56 |
with col1:
|
57 |
parse_type = st.selectbox("Manual upload or DB search?", ['DB Search', 'Manual'], key='parse_type')
|
58 |
with col2:
|
59 |
-
|
60 |
with col3:
|
|
|
|
|
61 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
62 |
# Add file uploaders to your app
|
63 |
col1, col2 = st.columns(2)
|
|
|
52 |
with tab1:
|
53 |
if st.button('Clear data', key='reset1'):
|
54 |
st.session_state.clear()
|
55 |
+
col1, col2, col3, col4 = st.columns(4)
|
56 |
with col1:
|
57 |
parse_type = st.selectbox("Manual upload or DB search?", ['DB Search', 'Manual'], key='parse_type')
|
58 |
with col2:
|
59 |
+
date_select = st.selectbox("Select Date", contest_date_map.values(), key='date_select')
|
60 |
with col3:
|
61 |
+
sport_select = st.selectbox("Select Sport", ['MLB', 'NBA', 'NFL'], key='sport_select')
|
62 |
+
with col4:
|
63 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
64 |
# Add file uploaders to your app
|
65 |
col1, col2 = st.columns(2)
|