pminervini commited on
Commit
b321106
1 Parent(s): e6f9572
Files changed (2) hide show
  1. app.py +2 -2
  2. src/leaderboard/read_evals.py +4 -4
app.py CHANGED
@@ -213,7 +213,7 @@ with demo:
213
  filter_columns_type,
214
  filter_columns_precision,
215
  filter_columns_size,
216
- # deleted_models_visibility,
217
  search_bar,
218
  ],
219
  leaderboard_table,
@@ -227,7 +227,7 @@ with demo:
227
  filter_columns_type,
228
  filter_columns_precision,
229
  filter_columns_size,
230
- # deleted_models_visibility,
231
  search_bar,
232
  ],
233
  leaderboard_table,
 
213
  filter_columns_type,
214
  filter_columns_precision,
215
  filter_columns_size,
216
+ deleted_models_visibility,
217
  search_bar,
218
  ],
219
  leaderboard_table,
 
227
  filter_columns_type,
228
  filter_columns_precision,
229
  filter_columns_size,
230
+ deleted_models_visibility,
231
  search_bar,
232
  ],
233
  leaderboard_table,
src/leaderboard/read_evals.py CHANGED
@@ -120,8 +120,8 @@ class EvalResult:
120
  self.likes = request.get("likes", 0)
121
  self.num_params = request.get("params", 0)
122
  self.date = request.get("submitted_time", "")
123
- except Exception:
124
- print(f"Could not find request file for {self.org}/{self.model} -- path: {requests_path}")
125
 
126
  def is_complete(self) -> bool:
127
  for task in Tasks:
@@ -172,8 +172,8 @@ def get_request_file_for_model(requests_path, model_name, precision):
172
  with open(tmp_request_file, "r") as f:
173
  req_content = json.load(f)
174
  if (
175
- req_content["status"] in ["FINISHED", "RUNNING"]
176
- and req_content["precision"] == precision.split(".")[-1]
177
  ):
178
  request_file = tmp_request_file
179
  return request_file
 
120
  self.likes = request.get("likes", 0)
121
  self.num_params = request.get("params", 0)
122
  self.date = request.get("submitted_time", "")
123
+ except Exception as e:
124
+ print(f"Could not find request file for {self.org}/{self.model} -- path: {requests_path} -- {e}")
125
 
126
  def is_complete(self) -> bool:
127
  for task in Tasks:
 
172
  with open(tmp_request_file, "r") as f:
173
  req_content = json.load(f)
174
  if (
175
+ # req_content["status"] in ["FINISHED", "RUNNING"] and
176
+ req_content["precision"] == precision.split(".")[-1]
177
  ):
178
  request_file = tmp_request_file
179
  return request_file