yentinglin commited on
Commit
4483cea
1 Parent(s): 5de440d
Files changed (1) hide show
  1. src/populate.py +4 -0
src/populate.py CHANGED
@@ -29,6 +29,10 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
29
 
30
  def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
31
  """Creates the different dataframes for the evaluation queues requestes"""
 
 
 
 
32
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
33
  all_evals = []
34
 
 
29
 
30
  def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
31
  """Creates the different dataframes for the evaluation queues requestes"""
32
+ # Create the directory if it doesn't exist
33
+ if not os.path.exists(save_path):
34
+ os.makedirs(save_path)
35
+
36
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
37
  all_evals = []
38