Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def load_leaderboard_table_csv(filename, add_hyperlink=False):
|
|
| 53 |
if add_hyperlink:
|
| 54 |
item["Model"] = f'<a target="_blank" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{item["Model"]}</a>'
|
| 55 |
rows.append(item)
|
| 56 |
-
rows.sort(key=lambda m: m.get("Validation Score", 0))
|
| 57 |
return rows
|
| 58 |
|
| 59 |
def get_full_table(model_table_df):
|
|
|
|
| 53 |
if add_hyperlink:
|
| 54 |
item["Model"] = f'<a target="_blank" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{item["Model"]}</a>'
|
| 55 |
rows.append(item)
|
| 56 |
+
rows.sort(key=lambda m: m.get("Validation Score", 0), reverse=True)
|
| 57 |
return rows
|
| 58 |
|
| 59 |
def get_full_table(model_table_df):
|