Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/populate.py
Browse files- 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 |
|