ayushi0430 commited on
Commit
42c7edd
1 Parent(s): f5705c5

sort by score

Browse files
Files changed (1) hide show
  1. src/populate.py +1 -1
src/populate.py CHANGED
@@ -15,7 +15,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
15
  all_data_json = [v.to_dict() for v in raw_data]
16
 
17
  df = pd.DataFrame.from_records(all_data_json)
18
- df = df.sort_values(by=[utils.AutoEvalColumn.product_response_subjective_score.name], ascending=True)
19
  df = df[cols].round(decimals=2)
20
 
21
  # filter out if any of the benchmarks have not been produced
 
15
  all_data_json = [v.to_dict() for v in raw_data]
16
 
17
  df = pd.DataFrame.from_records(all_data_json)
18
+ df = df.sort_values(by=[utils.AutoEvalColumn.average.name], ascending=False)
19
  df = df[cols].round(decimals=2)
20
 
21
  # filter out if any of the benchmarks have not been produced