Victor Dieguez commited on
Commit
fd29588
·
1 Parent(s): 2e39b31

Removing envs variables

Browse files
Files changed (1) hide show
  1. src/populate.py +19 -1
src/populate.py CHANGED
@@ -93,7 +93,7 @@ def get_leaderboard_df(eval_results_path, eval_requests_path, cols, benchmark_co
93
  df = df.dropna(subset=existing_benchmarks, how="any")
94
 
95
  return df
96
-
97
  def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
98
  """Creates the different dataframes for the evaluation queues requestes"""
99
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
@@ -128,3 +128,21 @@ def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
128
  df_running = pd.DataFrame.from_records(running_list, columns=cols)
129
  df_finished = pd.DataFrame.from_records(finished_list, columns=cols)
130
  return df_finished[cols], df_running[cols], df_pending[cols]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  df = df.dropna(subset=existing_benchmarks, how="any")
94
 
95
  return df
96
+ '''
97
  def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
98
  """Creates the different dataframes for the evaluation queues requestes"""
99
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
 
128
  df_running = pd.DataFrame.from_records(running_list, columns=cols)
129
  df_finished = pd.DataFrame.from_records(finished_list, columns=cols)
130
  return df_finished[cols], df_running[cols], df_pending[cols]
131
+ '''
132
+ def get_evaluation_queue_df(save_path: str, cols: list):
133
+ """
134
+ Stubbed evaluation queue.
135
+
136
+ You are not using a requests dataset / eval queue, so we just:
137
+ - ensure the directory exists, and
138
+ - return three empty dataframes (finished, running, pending)
139
+ with the expected columns.
140
+ """
141
+ # Make sure the folder exists so nothing crashes on missing dir
142
+ os.makedirs(save_path, exist_ok=True)
143
+
144
+ empty_df = pd.DataFrame(columns=cols)
145
+
146
+ # The order here must match how app.py unpacks the result:
147
+ # finished_df, running_df, pending_df = get_evaluation_queue_df(...)
148
+ return empty_df, empty_df.copy(), empty_df.copy()