lewtun
HF staff
commited on
Commit
06ca180
1 Parent(s): 909db72

Format submission names

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -58,6 +58,8 @@ def format_submissions(submissions):
58
  # TODO(lewtun): make this less hacky!
59
  if "_XXX_" in submission_name:
60
  submission_name = submission_name.replace("_XXX_", " ")
 
 
61
  submission_data["Submission Name"].append(submission_name)
62
  # Handle mismatch in epoch microseconds vs epoch seconds in new AutoTrain API
63
  if len(timestamp) > 10:
58
  # TODO(lewtun): make this less hacky!
59
  if "_XXX_" in submission_name:
60
  submission_name = submission_name.replace("_XXX_", " ")
61
+ if "_DDD_" in submission_name:
62
+ submission_name = submission_name.replace("_DDD_", "--")
63
  submission_data["Submission Name"].append(submission_name)
64
  # Handle mismatch in epoch microseconds vs epoch seconds in new AutoTrain API
65
  if len(timestamp) > 10: