Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,6 +183,16 @@ with tab1:
|
|
| 183 |
stack_var2 = st.multiselect('Which stack sizes do you want?', options = [4, 3, 2, 1, 0])
|
| 184 |
elif stack_var1 == 'Full Slate':
|
| 185 |
stack_var2 = [4, 3, 2, 1, 0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
with col2:
|
| 188 |
if st.button("Load Data", key='load_data'):
|
|
@@ -217,15 +227,6 @@ with tab1:
|
|
| 217 |
time.sleep(5)
|
| 218 |
st.table(st.session_state.data_export_display)
|
| 219 |
|
| 220 |
-
if st.button("Prepare data export", key='data_export'):
|
| 221 |
-
data_export = st.session_state.working_seed.copy()
|
| 222 |
-
st.download_button(
|
| 223 |
-
label="Export optimals set",
|
| 224 |
-
data=convert_df(data_export),
|
| 225 |
-
file_name='MLB_optimals_export.csv',
|
| 226 |
-
mime='text/csv',
|
| 227 |
-
)
|
| 228 |
-
|
| 229 |
with tab2:
|
| 230 |
col1, col2 = st.columns([1, 7])
|
| 231 |
with col1:
|
|
|
|
| 183 |
stack_var2 = st.multiselect('Which stack sizes do you want?', options = [4, 3, 2, 1, 0])
|
| 184 |
elif stack_var1 == 'Full Slate':
|
| 185 |
stack_var2 = [4, 3, 2, 1, 0]
|
| 186 |
+
|
| 187 |
+
if 'working_seed' in st.session_state:
|
| 188 |
+
if st.button("Prepare data export", key='data_export'):
|
| 189 |
+
data_export = st.session_state.working_seed.copy()
|
| 190 |
+
st.download_button(
|
| 191 |
+
label="Export optimals set",
|
| 192 |
+
data=convert_df(data_export),
|
| 193 |
+
file_name='MLB_optimals_export.csv',
|
| 194 |
+
mime='text/csv',
|
| 195 |
+
)
|
| 196 |
|
| 197 |
with col2:
|
| 198 |
if st.button("Load Data", key='load_data'):
|
|
|
|
| 227 |
time.sleep(5)
|
| 228 |
st.table(st.session_state.data_export_display)
|
| 229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
with tab2:
|
| 231 |
col1, col2 = st.columns([1, 7])
|
| 232 |
with col1:
|