sh1gechan commited on
Commit
8f35a3f
1 Parent(s): 0fe72e2

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +2 -0
src/populate.py CHANGED
@@ -31,6 +31,8 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
31
 
32
  # filter out if any of the benchmarks have not been produced
33
  df = df[has_no_nan_values(df, benchmark_cols)]
 
 
34
 
35
  return df
36
 
 
31
 
32
  # filter out if any of the benchmarks have not been produced
33
  df = df[has_no_nan_values(df, benchmark_cols)]
34
+
35
+ df['Model'] = df['Model'].apply(lambda x: f'[{x.split("/")[-1]}]({x})' if isinstance(x, str) else x)
36
 
37
  return df
38