Spaces:
Running
on
Zero
Running
on
Zero
remove icecream
Browse files- utils/leaderboard.py +7 -0
utils/leaderboard.py
CHANGED
|
@@ -287,9 +287,16 @@ def generate_leaderboard_html(results):
|
|
| 287 |
Returns:
|
| 288 |
- HTML string for the leaderboard
|
| 289 |
"""
|
|
|
|
|
|
|
|
|
|
| 290 |
# Prepare model data for the HTML table
|
| 291 |
model_data = []
|
| 292 |
for model in results["elo"]:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
elo = results["elo"].get(model, DEFAULT_ELO)
|
| 294 |
wins = results["wins"].get(model, 0)
|
| 295 |
losses = results["losses"].get(model, 0)
|
|
|
|
| 287 |
Returns:
|
| 288 |
- HTML string for the leaderboard
|
| 289 |
"""
|
| 290 |
+
# Models to hide from leaderboard display (but keep in battles)
|
| 291 |
+
HIDDEN_MODELS = ["icecream-3b"]
|
| 292 |
+
|
| 293 |
# Prepare model data for the HTML table
|
| 294 |
model_data = []
|
| 295 |
for model in results["elo"]:
|
| 296 |
+
# Skip hidden models in the display
|
| 297 |
+
if model in HIDDEN_MODELS:
|
| 298 |
+
continue
|
| 299 |
+
|
| 300 |
elo = results["elo"].get(model, DEFAULT_ELO)
|
| 301 |
wins = results["wins"].get(model, 0)
|
| 302 |
losses = results["losses"].get(model, 0)
|