Spaces:
Runtime error
Runtime error
lixuejing
commited on
Commit
·
654e2b1
1
Parent(s):
0f6755d
update
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -181,7 +181,7 @@ class EvalResult:
|
|
| 181 |
if task.value.col_name != "CLCC-H":
|
| 182 |
data_dict[task.value.col_name] = self.results.get(task.value.benchmark, 0)
|
| 183 |
else:
|
| 184 |
-
if self.results.get(task.value.
|
| 185 |
data_dict[task.value.col_name] = "-"
|
| 186 |
else:
|
| 187 |
data_dict[task.value.col_name] = "%.2f" % self.results.get(task.value.benchmark, 0)
|
|
|
|
| 181 |
if task.value.col_name != "CLCC-H":
|
| 182 |
data_dict[task.value.col_name] = self.results.get(task.value.benchmark, 0)
|
| 183 |
else:
|
| 184 |
+
if self.results.get(task.value.metric, 0) == 0:
|
| 185 |
data_dict[task.value.col_name] = "-"
|
| 186 |
else:
|
| 187 |
data_dict[task.value.col_name] = "%.2f" % self.results.get(task.value.benchmark, 0)
|