lewtun HF staff commited on
Commit
815926e
1 Parent(s): f842e59

Format date

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def download_submissions():
42
 
43
 
44
  def format_submissions(submissions):
45
- submission_data = {**{"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,7 +60,7 @@ def format_submissions(submissions):
60
  submission = username + "\n" + submission_name
61
  submission_data["Submission"].append(submission)
62
  timestamp = pd.to_datetime(int(timestamp))
63
- submission_data["Date"].append(datetime.date(timestamp))
64
 
65
  for task in card_data["results"]:
66
  task_data = task["task"]
 
42
 
43
 
44
  def format_submissions(submissions):
45
+ submission_data = {**{"Submission": []}, **{"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 = username + "\n" + submission_name
61
  submission_data["Submission"].append(submission)
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"]