Multichem commited on
Commit
bedc7a9
·
verified ·
1 Parent(s): 0300805

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -558,7 +558,7 @@ with tab1:
558
  'GPP_Proj': '{:.2f}'
559
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
560
  with tab2:
561
- if 'Sim_Winner_Display' in st.session_state and 'maps_dict' in st.session_state:
562
  # Apply position mapping to FLEX column
563
  flex_positions = st.session_state.Sim_Winner_Display['FLEX'].map(st.session_state.maps_dict['Pos_map'])
564
 
@@ -588,9 +588,6 @@ with tab1:
588
  'Avg GPP_Proj': '{:.2f}'
589
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']), use_container_width=True)
590
 
591
- # Create a bar chart for FLEX position distribution
592
- fig = px.bar(flex_summary, x='Position', y='Count', title='FLEX Position Distribution')
593
- st.plotly_chart(fig, use_container_width=True)
594
  else:
595
  st.write("Simulation data or position mapping not available.")
596
  with st.container():
 
558
  'GPP_Proj': '{:.2f}'
559
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
560
  with tab2:
561
+ if 'Sim_Winner_Display' in st.session_state:
562
  # Apply position mapping to FLEX column
563
  flex_positions = st.session_state.Sim_Winner_Display['FLEX'].map(st.session_state.maps_dict['Pos_map'])
564
 
 
588
  'Avg GPP_Proj': '{:.2f}'
589
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']), use_container_width=True)
590
 
 
 
 
591
  else:
592
  st.write("Simulation data or position mapping not available.")
593
  with st.container():