Spaces:
Sleeping
Sleeping
Add Output Format
Browse files- src/display/utils.py +3 -0
- src/leaderboard/read_evals.py +4 -1
src/display/utils.py
CHANGED
@@ -32,6 +32,9 @@ for task in Tasks:
|
|
32 |
auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
|
33 |
auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
34 |
|
|
|
|
|
|
|
35 |
# We use make dataclass to dynamically fill the scores from Tasks
|
36 |
AutoEvalColumn = make_dataclass("AutoEvalColumn", auto_eval_column_dict, frozen=True)
|
37 |
|
|
|
32 |
auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
|
33 |
auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
34 |
|
35 |
+
|
36 |
+
auto_eval_column_dict.append(["ouput_format", ColumnContent, ColumnContent("Output Format", "str", False, False)])
|
37 |
+
|
38 |
# We use make dataclass to dynamically fill the scores from Tasks
|
39 |
AutoEvalColumn = make_dataclass("AutoEvalColumn", auto_eval_column_dict, frozen=True)
|
40 |
|
src/leaderboard/read_evals.py
CHANGED
@@ -66,6 +66,8 @@ class EvalResult:
|
|
66 |
if architectures:
|
67 |
architecture = ";".join(architectures)
|
68 |
|
|
|
|
|
69 |
# Extract results available in this file (some results are split in several files)
|
70 |
results = {}
|
71 |
for task in Tasks:
|
@@ -88,7 +90,8 @@ class EvalResult:
|
|
88 |
precision=precision,
|
89 |
revision= config.get("model_sha", ""),
|
90 |
still_on_hub=still_on_hub,
|
91 |
-
architecture=architecture
|
|
|
92 |
)
|
93 |
|
94 |
def update_with_request_file(self, requests_path):
|
|
|
66 |
if architectures:
|
67 |
architecture = ";".join(architectures)
|
68 |
|
69 |
+
outut_format = config.get("output_format", "?")
|
70 |
+
|
71 |
# Extract results available in this file (some results are split in several files)
|
72 |
results = {}
|
73 |
for task in Tasks:
|
|
|
90 |
precision=precision,
|
91 |
revision= config.get("model_sha", ""),
|
92 |
still_on_hub=still_on_hub,
|
93 |
+
architecture=architecture,
|
94 |
+
outut_format=outut_format,
|
95 |
)
|
96 |
|
97 |
def update_with_request_file(self, requests_path):
|