Spaces:
Runtime error
Runtime error
Expand date header
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def download_submissions():
|
|
42 |
|
43 |
|
44 |
def format_submissions(submissions):
|
45 |
-
submission_data = {**{"Team": []}, **{"Model": []}, **{"Date": []}, **{t: [] for t in TASKS}}
|
46 |
|
47 |
# TODO(lewtun): delete / filter all the junk repos from development
|
48 |
# The following picks the latest submissions which adhere to the model card schema
|
@@ -60,7 +60,7 @@ def format_submissions(submissions):
|
|
60 |
submission_name, sha, timestamp = submission_id.split("__")
|
61 |
submission_data["Model"].append(submission_name)
|
62 |
timestamp = pd.to_datetime(int(timestamp))
|
63 |
-
submission_data["Date"].append(datetime.date(timestamp).strftime("%b %d, %Y"))
|
64 |
|
65 |
for task in card_data["results"]:
|
66 |
task_data = task["task"]
|
|
|
42 |
|
43 |
|
44 |
def format_submissions(submissions):
|
45 |
+
submission_data = {**{"Team": []}, **{"Model": []}, **{"Submission Date": []}, **{t: [] for t in TASKS}}
|
46 |
|
47 |
# TODO(lewtun): delete / filter all the junk repos from development
|
48 |
# The following picks the latest submissions which adhere to the model card schema
|
|
|
60 |
submission_name, sha, timestamp = submission_id.split("__")
|
61 |
submission_data["Model"].append(submission_name)
|
62 |
timestamp = pd.to_datetime(int(timestamp))
|
63 |
+
submission_data["Submission Date"].append(datetime.date(timestamp).strftime("%b %d, %Y"))
|
64 |
|
65 |
for task in card_data["results"]:
|
66 |
task_data = task["task"]
|