Spaces:
Build error
Build error
James McCool commited on
Commit ·
1e0095a
1
Parent(s): a4045d8
Managing opponent and grid maps based on sport definitions.
Browse files
app.py
CHANGED
|
@@ -1665,8 +1665,13 @@ if selected_tab == 'Data Load':
|
|
| 1665 |
projections_file = st.file_uploader("Upload Projections File (CSV or Excel)", type=['csv', 'xlsx', 'xls'])
|
| 1666 |
if sport_var == 'MMA':
|
| 1667 |
opp_map = init_mma_baselines(type_var, site_var, slate_var3)[8]
|
|
|
|
| 1668 |
elif sport_var == 'NASCAR':
|
| 1669 |
grid_map = init_nascar_baselines(type_var, site_var, slate_var3)[8]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1670 |
st.session_state['db_projections_file'] = projections_file
|
| 1671 |
st.session_state['projections_loaded'] = True
|
| 1672 |
elif proj_options == 'Paydirt DB':
|
|
|
|
| 1665 |
projections_file = st.file_uploader("Upload Projections File (CSV or Excel)", type=['csv', 'xlsx', 'xls'])
|
| 1666 |
if sport_var == 'MMA':
|
| 1667 |
opp_map = init_mma_baselines(type_var, site_var, slate_var3)[8]
|
| 1668 |
+
grid_map = None
|
| 1669 |
elif sport_var == 'NASCAR':
|
| 1670 |
grid_map = init_nascar_baselines(type_var, site_var, slate_var3)[8]
|
| 1671 |
+
opp_map = None
|
| 1672 |
+
else:
|
| 1673 |
+
opp_map = None
|
| 1674 |
+
grid_map = None
|
| 1675 |
st.session_state['db_projections_file'] = projections_file
|
| 1676 |
st.session_state['projections_loaded'] = True
|
| 1677 |
elif proj_options == 'Paydirt DB':
|