Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -126,14 +126,14 @@ with tab2:
|
|
126 |
display_container = st.empty()
|
127 |
display_dl_container = st.empty()
|
128 |
hold_container = st.empty()
|
129 |
-
|
|
|
|
|
|
|
|
|
130 |
if st.button('Simulate appropriate pivots'):
|
131 |
with hold_container:
|
132 |
-
|
133 |
-
raw_baselines = dk_raw
|
134 |
-
elif site_var1 == 'Fanduel':
|
135 |
-
raw_baselines = fd_raw
|
136 |
-
|
137 |
working_roo = raw_baselines
|
138 |
working_roo = working_roo[working_roo['Team'].isin(team_var1)]
|
139 |
own_dict = dict(zip(working_roo.Player, working_roo.Own))
|
|
|
126 |
display_container = st.empty()
|
127 |
display_dl_container = st.empty()
|
128 |
hold_container = st.empty()
|
129 |
+
if site_var1 == 'Draftkings':
|
130 |
+
raw_baselines = dk_raw
|
131 |
+
elif site_var1 == 'Fanduel':
|
132 |
+
raw_baselines = fd_raw
|
133 |
+
st.session_state.proj_display = raw_baselines.copy()
|
134 |
if st.button('Simulate appropriate pivots'):
|
135 |
with hold_container:
|
136 |
+
|
|
|
|
|
|
|
|
|
137 |
working_roo = raw_baselines
|
138 |
working_roo = working_roo[working_roo['Team'].isin(team_var1)]
|
139 |
own_dict = dict(zip(working_roo.Player, working_roo.Own))
|