Commit
39cb364
1 Parent(s): 309fff3

uploade populate

Browse files
Files changed (1) hide show
  1. src/populate.py +9 -1
src/populate.py CHANGED
@@ -17,6 +17,14 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
17
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
18
  df = df[cols].round(decimals=2)
19
 
20
- # filter out if any of the benchmarks have not been produced
21
  df = df[has_no_nan_values(df, benchmark_cols)]
22
  return df
 
 
 
 
 
 
 
 
 
17
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
18
  df = df[cols].round(decimals=2)
19
 
20
+ # Filter out if any of the benchmarks have not been produced
21
  df = df[has_no_nan_values(df, benchmark_cols)]
22
  return df
23
+
24
+
25
+ def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
26
+ """Creates the different dataframes for the evaluation queues requests"""
27
+ # Since evaluations are performed immediately, the queues will be empty
28
+ # We'll return empty DataFrames for compatibility
29
+ df_empty = pd.DataFrame(columns=cols)
30
+ return df_empty, df_empty, df_empty