Pendrokar commited on
Commit
5de65f5
·
1 Parent(s): ac553fe

top_five pick fix

Browse files
Files changed (2) hide show
  1. app/leaderboard.py +1 -0
  2. app/models.py +0 -2
app/leaderboard.py CHANGED
@@ -127,6 +127,7 @@ def get_leaderboard(reveal_prelim = False):
127
  if (
128
  reveal_prelim
129
  and len(top_five) < 5
 
130
  and orig_name in AVAILABLE_MODELS.keys()
131
  ):
132
  top_five.append(orig_name)
 
127
  if (
128
  reveal_prelim
129
  and len(top_five) < 5
130
+ and orig_name not in top_five
131
  and orig_name in AVAILABLE_MODELS.keys()
132
  ):
133
  top_five.append(orig_name)
app/models.py CHANGED
@@ -749,9 +749,7 @@ def make_link_to_space(model_name, for_leaderboard=False):
749
  title += model_name +'; Disabled (See AVAILABLE_MODELS within code for why)'
750
 
751
  # bolden top five models which get more scrutinized
752
- print(top_five)
753
  if model_name in top_five:
754
- print('Warning: top_five is not set')
755
  style += 'font-weight: bold;'
756
  title += '; scrutinized'
757
 
 
749
  title += model_name +'; Disabled (See AVAILABLE_MODELS within code for why)'
750
 
751
  # bolden top five models which get more scrutinized
 
752
  if model_name in top_five:
 
753
  style += 'font-weight: bold;'
754
  title += '; scrutinized'
755