Spaces:
Sleeping
Sleeping
XufengDuan
commited on
Commit
•
18716bc
1
Parent(s):
8ac95ce
updated scripts
Browse files- src/populate.py +3 -1
src/populate.py
CHANGED
@@ -9,9 +9,11 @@ import src.leaderboard.read_evals as read_evals
|
|
9 |
|
10 |
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
|
|
12 |
raw_data = read_evals.get_raw_eval_results(results_path, requests_path)
|
|
|
13 |
all_data_json = [v.to_dict() for v in raw_data]
|
14 |
-
|
15 |
print(all_data_json)
|
16 |
df = pd.DataFrame.from_records(all_data_json)
|
17 |
print(df)
|
|
|
9 |
|
10 |
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
12 |
+
print(results_path, requests_path)
|
13 |
raw_data = read_evals.get_raw_eval_results(results_path, requests_path)
|
14 |
+
print("raw_data",raw_data)
|
15 |
all_data_json = [v.to_dict() for v in raw_data]
|
16 |
+
|
17 |
print(all_data_json)
|
18 |
df = pd.DataFrame.from_records(all_data_json)
|
19 |
print(df)
|