Spaces:
Running
Running
[fix] fix bug of date
Browse files
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 |
-
|
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}"))
|