Spaces:
Running
Running
Commit
·
1501da9
1
Parent(s):
41ada02
fix: do not rank but strike out methods that cannot run for certain subsets.
Browse files
main.py
CHANGED
|
@@ -206,7 +206,7 @@ def make_overview_leaderboard(lbs: [LBContainer]):
|
|
| 206 |
missing_models = all_models.difference(df_models)
|
| 207 |
if missing_models:
|
| 208 |
missing_models_df = pd.DataFrame(
|
| 209 |
-
[[mm,
|
| 210 |
columns=["Model", lb.name],
|
| 211 |
)
|
| 212 |
df = pd.concat([df, missing_models_df], ignore_index=True)
|
|
@@ -220,7 +220,7 @@ def make_overview_leaderboard(lbs: [LBContainer]):
|
|
| 220 |
def highlight_top3(col):
|
| 221 |
styles = [""] * len(col)
|
| 222 |
for index_i in range(len(col)):
|
| 223 |
-
if col.iloc[index_i] <= 3:
|
| 224 |
styles[index_i] = (
|
| 225 |
f"background-color: {medal_colors[col.iloc[index_i] - 1]};"
|
| 226 |
)
|
|
|
|
| 206 |
missing_models = all_models.difference(df_models)
|
| 207 |
if missing_models:
|
| 208 |
missing_models_df = pd.DataFrame(
|
| 209 |
+
[[mm, "--"] for mm in missing_models],
|
| 210 |
columns=["Model", lb.name],
|
| 211 |
)
|
| 212 |
df = pd.concat([df, missing_models_df], ignore_index=True)
|
|
|
|
| 220 |
def highlight_top3(col):
|
| 221 |
styles = [""] * len(col)
|
| 222 |
for index_i in range(len(col)):
|
| 223 |
+
if (not isinstance(col.iloc[index_i], str)) and col.iloc[index_i] <= 3:
|
| 224 |
styles[index_i] = (
|
| 225 |
f"background-color: {medal_colors[col.iloc[index_i] - 1]};"
|
| 226 |
)
|