aminabbasi commited on
Commit
a4d8970
1 Parent(s): 60b35b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -60,10 +60,12 @@ LEADERBOARD_DF = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS,
60
  def init_leaderboard(dataframe):
61
  if dataframe is None or dataframe.empty:
62
  raise ValueError("Leaderboard DataFrame is empty or None.")
63
- default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default],
64
  cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
 
65
  print(default_selection)
66
  print(cant_deselect)
 
67
  return Leaderboard(
68
  value=dataframe,
69
  datatype=[c.type for c in fields(AutoEvalColumn)],
@@ -72,10 +74,7 @@ def init_leaderboard(dataframe):
72
  cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden],
73
  label="Select Columns to Display:",
74
  ),
75
- search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
76
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
77
- filter_columns=[],
78
- bool_checkboxgroup_label="Hide models",
79
  interactive=False,
80
  )
81
 
 
60
  def init_leaderboard(dataframe):
61
  if dataframe is None or dataframe.empty:
62
  raise ValueError("Leaderboard DataFrame is empty or None.")
63
+ default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default]
64
  cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
65
+ hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
66
  print(default_selection)
67
  print(cant_deselect)
68
+ print(hide_columns)
69
  return Leaderboard(
70
  value=dataframe,
71
  datatype=[c.type for c in fields(AutoEvalColumn)],
 
74
  cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden],
75
  label="Select Columns to Display:",
76
  ),
 
77
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
 
 
78
  interactive=False,
79
  )
80