Commit
Β·
a6f5bd8
1
Parent(s):
444cb2e
Fix indexing for leaderboard columns in hf_utils.py
Browse files- src/hf_utils.py +3 -3
src/hf_utils.py
CHANGED
@@ -93,11 +93,11 @@ def load_leaderboard_data():
|
|
93 |
with open(local_summary_path, "r", encoding="utf-8") as f:
|
94 |
for line in f:
|
95 |
if 'Error perc' in line:
|
96 |
-
entry[LDB_COLS[
|
97 |
if 'Final Solution Accuracy' in line:
|
98 |
-
entry[LDB_COLS[
|
99 |
if 'Submission coverage perc' in line:
|
100 |
-
entry[LDB_COLS[
|
101 |
os.remove(local_summary_path)
|
102 |
else:
|
103 |
print(f"Warning: Summary file {local_summary_path} does not exist or is empty.")
|
|
|
93 |
with open(local_summary_path, "r", encoding="utf-8") as f:
|
94 |
for line in f:
|
95 |
if 'Error perc' in line:
|
96 |
+
entry[LDB_COLS[5]] = float(line.split(":")[1].strip().replace("%", ""))
|
97 |
if 'Final Solution Accuracy' in line:
|
98 |
+
entry[LDB_COLS[4]] = float(line.split(":")[1].strip().replace("%", ""))
|
99 |
if 'Submission coverage perc' in line:
|
100 |
+
entry[LDB_COLS[3]] = float(line.split(":")[1].strip().replace("%", ""))
|
101 |
os.remove(local_summary_path)
|
102 |
else:
|
103 |
print(f"Warning: Summary file {local_summary_path} does not exist or is empty.")
|