Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
GitHub Actions
commited on
Commit
·
fbdb16c
1
Parent(s):
772f43d
Sync from GitHub repo
Browse files
app.py
CHANGED
@@ -1323,7 +1323,7 @@ def get_weighted_random_models(
|
|
1323 |
for model in applicable_models:
|
1324 |
votes = (
|
1325 |
Vote.query.filter(Vote.model_type == model_type)
|
1326 |
-
.filter(or_(Vote.
|
1327 |
.count()
|
1328 |
)
|
1329 |
model_votes_counts[model.id] = votes
|
|
|
1323 |
for model in applicable_models:
|
1324 |
votes = (
|
1325 |
Vote.query.filter(Vote.model_type == model_type)
|
1326 |
+
.filter(or_(Vote.model_chosen == model.id, Vote.model_rejected == model.id))
|
1327 |
.count()
|
1328 |
)
|
1329 |
model_votes_counts[model.id] = votes
|