Roni Goldshmidt commited on
Commit
0909f18
·
1 Parent(s): c7ebe09

Initial leaderboard setup

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -1
  2. app.py +2 -1
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -220,7 +220,8 @@ with tab2:
220
  color='Model',
221
  barmode='group',
222
  title=f'{selected_metric} by Class for {selected_category}',
223
- color_discrete_map=model_colors
 
224
  )
225
  st.plotly_chart(fig, use_container_width=True)
226
 
 
220
  color='Model',
221
  barmode='group',
222
  title=f'{selected_metric} by Class for {selected_category}',
223
+ color_discrete_map=model_colors,
224
+ range_y=[0, 100] if selected_metric in ['F1 Score', 'Precision', 'Recall'] else None
225
  )
226
  st.plotly_chart(fig, use_container_width=True)
227
 
app.py CHANGED
@@ -220,7 +220,8 @@ with tab2:
220
  color='Model',
221
  barmode='group',
222
  title=f'{selected_metric} by Class for {selected_category}',
223
- color_discrete_map=model_colors
 
224
  )
225
  st.plotly_chart(fig, use_container_width=True)
226
 
 
220
  color='Model',
221
  barmode='group',
222
  title=f'{selected_metric} by Class for {selected_category}',
223
+ color_discrete_map=model_colors,
224
+ range_y=[0, 100] if selected_metric in ['F1 Score', 'Precision', 'Recall'] else None
225
  )
226
  st.plotly_chart(fig, use_container_width=True)
227