Spaces:
Running
Running
Update leaderboard.py
Browse files- leaderboard.py +8 -0
leaderboard.py
CHANGED
|
@@ -179,6 +179,10 @@ def get_leaderboard():
|
|
| 179 |
|
| 180 |
# Get human readable name
|
| 181 |
human_readable = get_human_readable_name(model)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
|
| 183 |
# Format the row with formatted strings for display
|
| 184 |
row = [
|
|
@@ -245,6 +249,10 @@ def get_elo_leaderboard():
|
|
| 245 |
|
| 246 |
# Get human readable name
|
| 247 |
human_readable = get_human_readable_name(model)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
|
| 249 |
# Format the row with formatted strings for display
|
| 250 |
row = [
|
|
|
|
| 179 |
|
| 180 |
# Get human readable name
|
| 181 |
human_readable = get_human_readable_name(model)
|
| 182 |
+
|
| 183 |
+
# Add "Retired" status if the model has exceeded the battle limit
|
| 184 |
+
if total_battles > config.MAX_BATTLES_LIMIT:
|
| 185 |
+
human_readable += " (Retired)"
|
| 186 |
|
| 187 |
# Format the row with formatted strings for display
|
| 188 |
row = [
|
|
|
|
| 249 |
|
| 250 |
# Get human readable name
|
| 251 |
human_readable = get_human_readable_name(model)
|
| 252 |
+
|
| 253 |
+
# Add "Retired" status if the model has exceeded the battle limit
|
| 254 |
+
if total_battles > config.MAX_BATTLES_LIMIT:
|
| 255 |
+
human_readable += " Retired"
|
| 256 |
|
| 257 |
# Format the row with formatted strings for display
|
| 258 |
row = [
|