pufanyi commited on
Commit
cb5cde2
·
1 Parent(s): 5f9b8de

Refactor auto_eval_column_dict to set "Dataset Version" column as non-nullable

Browse files
Files changed (1) hide show
  1. src/display/utils.py +1 -1
src/display/utils.py CHANGED
@@ -33,7 +33,7 @@ auto_eval_column_dict.append(
33
  auto_eval_column_dict.append(["Overall", ColumnContent, ColumnContent("Total", "number", True)])
34
  for task in Tasks:
35
  auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])
36
- auto_eval_column_dict.append(["dataset_version", ColumnContent, ColumnContent("Dataset Version", "str", True)])
37
 
38
  # We use make dataclass to dynamically fill the scores from Tasks
39
  AutoEvalColumn = make_dataclass("AutoEvalColumn", auto_eval_column_dict, frozen=True)
 
33
  auto_eval_column_dict.append(["Overall", ColumnContent, ColumnContent("Total", "number", True)])
34
  for task in Tasks:
35
  auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])
36
+ auto_eval_column_dict.append(["dataset_version", ColumnContent, ColumnContent("Dataset Version", "str", False, True)])
37
 
38
  # We use make dataclass to dynamically fill the scores from Tasks
39
  AutoEvalColumn = make_dataclass("AutoEvalColumn", auto_eval_column_dict, frozen=True)