hysts HF staff commited on
Commit
245d717
·
1 Parent(s): a9d88ba
Files changed (1) hide show
  1. src/populate.py +2 -2
src/populate.py CHANGED
@@ -22,7 +22,7 @@ COLUMNS_TO_NORMALIZE = [
22
  ]
23
 
24
 
25
- def get_leaderboard_df(contents_repo: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
26
  df = datasets.load_dataset(contents_repo, split="train").to_pandas()
27
  df["Model"] = df["model"].map(make_clickable_model)
28
  df["T"] = df["model_type"].map(lambda x: x.split(":")[0].strip())
@@ -61,7 +61,7 @@ def get_leaderboard_df(contents_repo: str, cols: list, benchmark_cols: list) ->
61
  return df
62
 
63
 
64
- def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
65
  """Creates the different dataframes for the evaluation queues requestes"""
66
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
67
  all_evals = []
 
22
  ]
23
 
24
 
25
+ def get_leaderboard_df(contents_repo: str, cols: list[str], benchmark_cols: list[str]) -> pd.DataFrame:
26
  df = datasets.load_dataset(contents_repo, split="train").to_pandas()
27
  df["Model"] = df["model"].map(make_clickable_model)
28
  df["T"] = df["model_type"].map(lambda x: x.split(":")[0].strip())
 
61
  return df
62
 
63
 
64
+ def get_evaluation_queue_df(save_path: str, cols: list[str]) -> list[pd.DataFrame]:
65
  """Creates the different dataframes for the evaluation queues requestes"""
66
  entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
67
  all_evals = []