James McCool
commited on
Commit
·
cc728bf
1
Parent(s):
2dacd0e
Handle initialization of baselines in app.py with error handling. Added a try-except block to fallback to 'NBA' data if 'NFL' initialization fails, improving robustness of the simulation setup.
Browse files
app.py
CHANGED
@@ -244,7 +244,10 @@ def sim_contest(Sim_size, seed_frame, maps_dict, Contest_Size):
|
|
244 |
|
245 |
return Sim_Winners
|
246 |
|
247 |
-
|
|
|
|
|
|
|
248 |
|
249 |
tab1, tab2 = st.tabs(['Contest Sims', 'Data Export'])
|
250 |
with tab2:
|
|
|
244 |
|
245 |
return Sim_Winners
|
246 |
|
247 |
+
try:
|
248 |
+
dk_raw, fd_raw = init_baselines('NFL')
|
249 |
+
except:
|
250 |
+
dk_raw, fd_raw = init_baselines('NBA')
|
251 |
|
252 |
tab1, tab2 = st.tabs(['Contest Sims', 'Data Export'])
|
253 |
with tab2:
|