Spaces:
Running
Running
James McCool
commited on
Commit
·
049e846
1
Parent(s):
7764903
Simplify UI layout and remove unnecessary Streamlit containers
Browse files- Remove redundant empty containers in tab1
- Consolidate radio button columns directly in the main container
- Streamline UI structure for improved readability and performance
app.py
CHANGED
@@ -164,19 +164,16 @@ with tab1:
|
|
164 |
del st.session_state[key]
|
165 |
|
166 |
st.write(timestamp)
|
167 |
-
info_container = st.empty()
|
168 |
-
options_container = st.empty()
|
169 |
-
hold_container = st.empty()
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
with
|
180 |
if type_var == "Full Slate":
|
181 |
display = hold_display[hold_display['Site'] == site_var]
|
182 |
display = display.drop_duplicates(subset=['Player'])
|
|
|
164 |
del st.session_state[key]
|
165 |
|
166 |
st.write(timestamp)
|
|
|
|
|
|
|
167 |
|
168 |
+
col1, col2, col3 = st.columns(3)
|
169 |
+
with col1:
|
170 |
+
view_var = st.radio("Select a View", ["Simple", "Advanced"])
|
171 |
+
with col2:
|
172 |
+
site_var = st.radio("Select a Site", ["Draftkings", "FanDuel"])
|
173 |
+
with col3:
|
174 |
+
type_var = st.radio("Select a Type", ["Full Slate", "Showdown"])
|
175 |
+
|
176 |
+
with st.container():
|
177 |
if type_var == "Full Slate":
|
178 |
display = hold_display[hold_display['Site'] == site_var]
|
179 |
display = display.drop_duplicates(subset=['Player'])
|