Spaces:
Runtime error
Runtime error
[fix] fix bug of date
Browse files37 unmodified lines383940414243444537 unmodified linessubmission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")submission_repo.git_pull()filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")update_time = now.strftime("%Y-%m-%d") # Capture update timenow = datetime.datetime.now()with open(f'{SUBMISSION_NAME}/{filename}.zip','wb') as f:f.write(input_file)# shutil.copyfile(CSV_DIR, os.path.join(SUBMISSION_NAME, f"{input_file}"))37 unmodified lines38394041424344454637 unmodified linessubmission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")submission_repo.git_pull()filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")now = datetime.datetime.now()update_time = now.strftime("%Y-%m-%d") # Capture update timewith open(f'{SUBMISSION_NAME}/{filename}.zip','wb') as f:f.write(input_file)# shutil.copyfile(CSV_DIR, os.path.join(SUBMISSION_NAME, f"{input_file}"))
app.py+2-1