ynhe commited on
Commit
e10e6e6
1 Parent(s): c063f53

[fix] fix bug of date

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,8 +38,9 @@ def add_new_eval(
38
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
39
  submission_repo.git_pull()
40
  filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
41
- update_time = now.strftime("%Y-%m-%d") # Capture update time
42
  now = datetime.datetime.now()
 
43
  with open(f'{SUBMISSION_NAME}/{filename}.zip','wb') as f:
44
  f.write(input_file)
45
  # shutil.copyfile(CSV_DIR, os.path.join(SUBMISSION_NAME, f"{input_file}"))
 
38
  submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
39
  submission_repo.git_pull()
40
  filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
41
+
42
  now = datetime.datetime.now()
43
+ update_time = now.strftime("%Y-%m-%d") # Capture update time
44
  with open(f'{SUBMISSION_NAME}/{filename}.zip','wb') as f:
45
  f.write(input_file)
46
  # shutil.copyfile(CSV_DIR, os.path.join(SUBMISSION_NAME, f"{input_file}"))