hSterz commited on
Commit
95e5b6f
·
1 Parent(s): adecec6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,8 +65,8 @@ def init_leaderboard(dataframe):
65
  value=dataframe,
66
  datatype=[c.type for c in fields(AutoEvalColumn)],
67
  select_columns=SelectColumns(
68
- default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default],
69
- cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden],
70
  label="Select Columns to Display:",
71
  ),
72
  search_columns=[AutoEvalColumn.model.name],
 
65
  value=dataframe,
66
  datatype=[c.type for c in fields(AutoEvalColumn)],
67
  select_columns=SelectColumns(
68
+ default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default and c.name in dataframe.columns],
69
+ cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden and c.name in dataframe.columns],
70
  label="Select Columns to Display:",
71
  ),
72
  search_columns=[AutoEvalColumn.model.name],