yzabc007 commited on
Commit
a6bb893
1 Parent(s): 8b54f70

Update space

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -63,13 +63,14 @@ def init_leaderboard(dataframe):
63
  return Leaderboard(
64
  value=dataframe,
65
  datatype=[c.type for c in fields(AutoEvalColumn)],
66
- select_columns=SelectColumns(
67
- default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default],
68
- cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden],
69
- label="Select Columns to Display:",
70
- ),
71
- search_columns=None,
72
- # search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
 
73
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
74
  filter_columns=[
75
  ColumnFilter(AutoEvalColumn.model_type.name, type="checkboxgroup", label="Model types"),
 
63
  return Leaderboard(
64
  value=dataframe,
65
  datatype=[c.type for c in fields(AutoEvalColumn)],
66
+ select_columns=None,
67
+ # 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=None,
73
+ search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
74
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
75
  filter_columns=[
76
  ColumnFilter(AutoEvalColumn.model_type.name, type="checkboxgroup", label="Model types"),