Alina Lozovskaia commited on
Commit
9b7814c
1 Parent(s): 9d989a4

apply code style and quality checks to filter_models.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/filter_models.py +2 -3
src/leaderboard/filter_models.py CHANGED
@@ -137,9 +137,9 @@ def flag_models(leaderboard_data: list[dict]):
137
  if model_data[AutoEvalColumn.not_flagged.name]:
138
  flag_key = model_data[AutoEvalColumn.fullname.name]
139
  else:
140
- # Merges and moes are flagged
141
  flag_key = "merged"
142
-
143
  # Reverse the logic: Check for non-flagged models instead
144
  if flag_key in FLAGGED_MODELS:
145
  issue_num = FLAGGED_MODELS[flag_key].split("/")[-1]
@@ -171,4 +171,3 @@ def remove_forbidden_models(leaderboard_data: list[dict]):
171
  def filter_models_flags(leaderboard_data: list[dict]):
172
  leaderboard_data = remove_forbidden_models(leaderboard_data)
173
  flag_models(leaderboard_data)
174
-
 
137
  if model_data[AutoEvalColumn.not_flagged.name]:
138
  flag_key = model_data[AutoEvalColumn.fullname.name]
139
  else:
140
+ # Merges and moes are flagged
141
  flag_key = "merged"
142
+
143
  # Reverse the logic: Check for non-flagged models instead
144
  if flag_key in FLAGGED_MODELS:
145
  issue_num = FLAGGED_MODELS[flag_key].split("/")[-1]
 
171
  def filter_models_flags(leaderboard_data: list[dict]):
172
  leaderboard_data = remove_forbidden_models(leaderboard_data)
173
  flag_models(leaderboard_data)