Spaces:
Runtime error
Runtime error
hi-melnikov
commited on
Commit
·
98d9ad5
1
Parent(s):
e348563
Changed naming in the build_leaderboard
Browse files
src/leaderboard/build_leaderboard.py
CHANGED
@@ -55,7 +55,8 @@ def download_openbench():
|
|
55 |
"""Downloads pre generated data"""
|
56 |
# download answers of different models that we trust
|
57 |
download_dataset("Vikhrmodels/openbench-eval", EVAL_RESULTS_PATH)
|
58 |
-
|
|
|
59 |
|
60 |
# copy the trusted model answers to data
|
61 |
subprocess.run(
|
@@ -84,6 +85,6 @@ def download_openbench():
|
|
84 |
|
85 |
def build_leadearboard_df():
|
86 |
# Retrieve the leaderboard DataFrame
|
87 |
-
with open("
|
88 |
leaderboard_df = pd.DataFrame.from_records(json.load(eval_file))
|
89 |
return leaderboard_df.copy()
|
|
|
55 |
"""Downloads pre generated data"""
|
56 |
# download answers of different models that we trust
|
57 |
download_dataset("Vikhrmodels/openbench-eval", EVAL_RESULTS_PATH)
|
58 |
+
|
59 |
+
print(subprocess.run("ls src", check=False))
|
60 |
|
61 |
# copy the trusted model answers to data
|
62 |
subprocess.run(
|
|
|
85 |
|
86 |
def build_leadearboard_df():
|
87 |
# Retrieve the leaderboard DataFrame
|
88 |
+
with open("data/leaderboard.jsong", "r", encoding="utf-8") as eval_file:
|
89 |
leaderboard_df = pd.DataFrame.from_records(json.load(eval_file))
|
90 |
return leaderboard_df.copy()
|