Spaces:
Restarting
Restarting
kz-transformers
commited on
Update src/leaderboard/build_leaderboard.py
Browse files
src/leaderboard/build_leaderboard.py
CHANGED
@@ -72,7 +72,9 @@ def download_openbench():
|
|
72 |
|
73 |
def build_leadearboard_df():
|
74 |
# Retrieve the leaderboard DataFrame
|
75 |
-
|
|
|
|
|
76 |
f=json.load(eval_file)
|
77 |
print(f)
|
78 |
df = pd.DataFrame.from_records(f)
|
|
|
72 |
|
73 |
def build_leadearboard_df():
|
74 |
# Retrieve the leaderboard DataFrame
|
75 |
+
initial_file_path = f"{os.path.abspath(DATA_PATH)}/leaderboard.json"
|
76 |
+
print(f'READING INITIAL LB STATE FROM: {initial_file_path}')
|
77 |
+
with open(initial_file_path, "r", encoding="utf-8") as eval_file:
|
78 |
f=json.load(eval_file)
|
79 |
print(f)
|
80 |
df = pd.DataFrame.from_records(f)
|