Spaces:
Runtime error
Runtime error
Update leaderboard
Browse files
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
|
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[-
|
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",
|