Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -525,11 +525,11 @@ overall_exposure = pd.DataFrame(columns=['Player', 'count'])
|
|
| 525 |
tab1, tab2 = st.tabs(['Uploads', 'Contest Sim'])
|
| 526 |
|
| 527 |
with tab1:
|
| 528 |
-
with st.container():
|
| 529 |
-
st.info("The Projections file can have any columns in any order, but must contain columns explicitly named: 'Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', and 'Own'. Upload your projections first to avoid an error message.")
|
| 530 |
col1, col2 = st.columns([3, 3])
|
| 531 |
|
| 532 |
with col1:
|
|
|
|
| 533 |
proj_file = st.file_uploader("Upload Projections File", key = 'proj_uploader')
|
| 534 |
|
| 535 |
if proj_file is not None:
|
|
@@ -557,6 +557,7 @@ with tab1:
|
|
| 557 |
player_team_dict = dict(zip(proj_dataframe.Player, proj_dataframe.Team))
|
| 558 |
|
| 559 |
with col2:
|
|
|
|
| 560 |
portfolio_file = st.file_uploader("Upload Portfolio File", key = 'portfolio_uploader')
|
| 561 |
|
| 562 |
if portfolio_file is not None:
|
|
|
|
| 525 |
tab1, tab2 = st.tabs(['Uploads', 'Contest Sim'])
|
| 526 |
|
| 527 |
with tab1:
|
| 528 |
+
with st.container():
|
|
|
|
| 529 |
col1, col2 = st.columns([3, 3])
|
| 530 |
|
| 531 |
with col1:
|
| 532 |
+
st.info("The Projections file can have any columns in any order, but must contain columns explicitly named: 'Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', and 'Own'. Upload your projections first to avoid an error message.")
|
| 533 |
proj_file = st.file_uploader("Upload Projections File", key = 'proj_uploader')
|
| 534 |
|
| 535 |
if proj_file is not None:
|
|
|
|
| 557 |
player_team_dict = dict(zip(proj_dataframe.Player, proj_dataframe.Team))
|
| 558 |
|
| 559 |
with col2:
|
| 560 |
+
st.info("The Portfolio file must contain only columns in order and explicitly named: 'QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', and 'DST'. Upload your projections first to avoid an error message.")
|
| 561 |
portfolio_file = st.file_uploader("Upload Portfolio File", key = 'portfolio_uploader')
|
| 562 |
|
| 563 |
if portfolio_file is not None:
|