Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
GitHub Actions
commited on
Commit
·
8560ac0
1
Parent(s):
7058380
Sync from GitHub repo
Browse files
models.py
CHANGED
|
@@ -290,8 +290,8 @@ def get_leaderboard_data(model_type):
|
|
| 290 |
"""
|
| 291 |
query = Model.query.filter_by(model_type=model_type)
|
| 292 |
|
| 293 |
-
# Get models ordered by ELO score
|
| 294 |
-
models = query.order_by(Model.current_elo.desc()).all()
|
| 295 |
|
| 296 |
result = []
|
| 297 |
for rank, model in enumerate(models, 1):
|
|
|
|
| 290 |
"""
|
| 291 |
query = Model.query.filter_by(model_type=model_type)
|
| 292 |
|
| 293 |
+
# Get models with >1k votes ordered by ELO score
|
| 294 |
+
models = query.filter(Model.match_count > 1000).order_by(Model.current_elo.desc()).all()
|
| 295 |
|
| 296 |
result = []
|
| 297 |
for rank, model in enumerate(models, 1):
|