Spaces:
Runtime error
Runtime error
Update src/populate.py
Browse files- src/populate.py +8 -1
src/populate.py
CHANGED
@@ -10,12 +10,19 @@ from src.leaderboard.read_evals import get_raw_eval_results
|
|
10 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
11 |
print("before get_raw_eval_results") # blz
|
12 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
13 |
-
print("
|
|
|
|
|
14 |
|
15 |
all_data_json = [v.to_dict() for v in raw_data]
|
16 |
|
|
|
|
|
17 |
df = pd.DataFrame.from_records(all_data_json)
|
18 |
|
|
|
|
|
|
|
19 |
# Print the name of the average field from AutoEvalColumn
|
20 |
print("Name of the average field in AutoEvalColumn:", AutoEvalColumn.average.name)
|
21 |
|
|
|
10 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
11 |
print("before get_raw_eval_results") # blz
|
12 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
13 |
+
print(f"get_raw_eval_results {results_path} --- {requests_path}") # blz
|
14 |
+
|
15 |
+
print(f"after get_raw_eval_results {raw_data}") # blz
|
16 |
|
17 |
all_data_json = [v.to_dict() for v in raw_data]
|
18 |
|
19 |
+
print(f"all_data_json {all_data_json}") # blz
|
20 |
+
|
21 |
df = pd.DataFrame.from_records(all_data_json)
|
22 |
|
23 |
+
print(f"df {df}") # blz
|
24 |
+
|
25 |
+
|
26 |
# Print the name of the average field from AutoEvalColumn
|
27 |
print("Name of the average field in AutoEvalColumn:", AutoEvalColumn.average.name)
|
28 |
|