Update src/populate.py
Browse files- src/populate.py +2 -1
src/populate.py
CHANGED
|
@@ -3,7 +3,7 @@ import os
|
|
| 3 |
import numpy as np
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
-
from src.display.formatting import has_no_nan_values, make_clickable_model
|
| 7 |
from src.display.utils import AutoEvalColumn, EvalQueueColumn
|
| 8 |
from src.leaderboard.read_evals import get_raw_eval_results
|
| 9 |
|
|
@@ -17,6 +17,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 17 |
df.replace(r'\s+', np.nan, regex=True)
|
| 18 |
# filter out if any of the benchmarks have not been produced
|
| 19 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
|
|
|
| 20 |
|
| 21 |
return raw_data, df
|
| 22 |
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
+
from src.display.formatting import has_no_nan_values, make_clickable_model, model_hyperlink
|
| 7 |
from src.display.utils import AutoEvalColumn, EvalQueueColumn
|
| 8 |
from src.leaderboard.read_evals import get_raw_eval_results
|
| 9 |
|
|
|
|
| 17 |
df.replace(r'\s+', np.nan, regex=True)
|
| 18 |
# filter out if any of the benchmarks have not been produced
|
| 19 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
| 20 |
+
df["eval_name"] = model_hyperlink(df["eval_name"], df["hf_model_id"])
|
| 21 |
|
| 22 |
return raw_data, df
|
| 23 |
|