kaikaidai commited on
Commit
255ad58
·
verified ·
1 Parent(s): 214129a

Update leaderboard.py

Browse files
Files changed (1) hide show
  1. leaderboard.py +4 -2
leaderboard.py CHANGED
@@ -55,8 +55,8 @@ def get_leaderboard(model_data: Dict, voting_data: List, show_preliminary=True):
55
  leaderboard = []
56
  for model in model_data.keys():
57
  votes = matches[model]
58
- # Skip models with < 500 votes if show_preliminary is False
59
- if not show_preliminary and votes < 500:
60
  continue
61
 
62
  elo = ratings[model]
@@ -81,6 +81,8 @@ def get_leaderboard_stats(model_data: Dict, voting_data: List) -> str:
81
  now = datetime.now(timezone.utc)
82
  total_votes = len(voting_data)
83
  total_models = len(model_data)
 
 
84
  last_updated = now.replace(minute=0, second=0, microsecond=0).strftime(
85
  "%B %d, %Y at %H:00 UTC"
86
  )
 
55
  leaderboard = []
56
  for model in model_data.keys():
57
  votes = matches[model]
58
+ # Skip models with < 300 votes if show_preliminary is False
59
+ if not show_preliminary and votes < 300:
60
  continue
61
 
62
  elo = ratings[model]
 
81
  now = datetime.now(timezone.utc)
82
  total_votes = len(voting_data)
83
  total_models = len(model_data)
84
+ # last_updated = now.strftime("%B %d, %Y at %H:%M:%S UTC")
85
+
86
  last_updated = now.replace(minute=0, second=0, microsecond=0).strftime(
87
  "%B %d, %Y at %H:00 UTC"
88
  )