danielz02 commited on
Commit
fa5d3ba
1 Parent(s): 0f65d2c

Hide some column options

Browse files
src/display/utils.py CHANGED
@@ -36,11 +36,11 @@ auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type",
36
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
37
  auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
38
  auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
39
- # auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
40
  auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
41
- # auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
42
- # auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
43
- # auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
44
  # Dummy column for the search bar (hidden by the custom CSS)
45
  auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
46
 
 
36
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
37
  auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
38
  auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
39
+ auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False, dummy=True)])
40
  auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
41
+ auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False, dummy=True)])
42
+ auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False, dummy=True)])
43
+ auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False, dummy=True)])
44
  # Dummy column for the search bar (hidden by the custom CSS)
45
  auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
46
 
src/leaderboard/read_evals.py CHANGED
@@ -119,16 +119,16 @@ class EvalResult:
119
  AutoEvalColumn.model_type.name: self.model_type.value.name,
120
  AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
121
  AutoEvalColumn.weight_type.name: self.weight_type.value.name,
122
- # AutoEvalColumn.architecture.name: self.architecture,
123
  AutoEvalColumn.model.name: make_clickable_model(self.full_model),
124
  AutoEvalColumn.dummy.name: self.full_model,
125
  AutoEvalColumn.
126
  revision.name: self.revision,
127
  AutoEvalColumn.average.name: average,
128
- # AutoEvalColumn.license.name: self.license,
129
- # AutoEvalColumn.likes.name: self.likes,
130
  AutoEvalColumn.params.name: self.num_params,
131
- # AutoEvalColumn.still_on_hub.name: self.still_on_hub,
132
  }
133
 
134
  for task in Tasks:
 
119
  AutoEvalColumn.model_type.name: self.model_type.value.name,
120
  AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
121
  AutoEvalColumn.weight_type.name: self.weight_type.value.name,
122
+ AutoEvalColumn.architecture.name: self.architecture,
123
  AutoEvalColumn.model.name: make_clickable_model(self.full_model),
124
  AutoEvalColumn.dummy.name: self.full_model,
125
  AutoEvalColumn.
126
  revision.name: self.revision,
127
  AutoEvalColumn.average.name: average,
128
+ AutoEvalColumn.license.name: self.license,
129
+ AutoEvalColumn.likes.name: self.likes,
130
  AutoEvalColumn.params.name: self.num_params,
131
+ AutoEvalColumn.still_on_hub.name: self.still_on_hub,
132
  }
133
 
134
  for task in Tasks: