lewtun HF staff commited on
Commit
cc17f27
1 Parent(s): be48d91

Update leaderboard

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def download_submissions():
41
  tags = extract_tags(dataset)
42
  if tags.get("benchmark") == "ought/raft" and tags.get("type") == "evaluation":
43
  submissions.append(dataset)
44
- submissions = sorted(submissions, key = lambda x: int(x["id"].split("-")[-1]))
45
  return submissions
46
 
47
 
@@ -50,7 +50,7 @@ def format_submissions(submissions):
50
 
51
  # TODO(lewtun): delete / filter all the junk repos from development
52
  # The following picks the latest submissions which adhere to the model card schema
53
- for submission in submissions[-1:]:
54
  submission_id = submission["id"]
55
  response = requests.get(
56
  f"http://huggingface.co/api/datasets/{submission_id}?full=true",
41
  tags = extract_tags(dataset)
42
  if tags.get("benchmark") == "ought/raft" and tags.get("type") == "evaluation":
43
  submissions.append(dataset)
44
+ submissions = sorted(submissions, key=lambda x: int(x["id"].split("-")[-1]))
45
  return submissions
46
 
47
 
50
 
51
  # TODO(lewtun): delete / filter all the junk repos from development
52
  # The following picks the latest submissions which adhere to the model card schema
53
+ for submission in submissions[-2:]:
54
  submission_id = submission["id"]
55
  response = requests.get(
56
  f"http://huggingface.co/api/datasets/{submission_id}?full=true",