Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def add_new_eval(
|
|
| 31 |
upload_content = input_file
|
| 32 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
| 33 |
submission_repo.git_pull()
|
| 34 |
-
filename = now.strftime("%Y%m%d_%H%M%S")
|
| 35 |
now = datetime.datetime.now()
|
| 36 |
with open(f'{filename}.zip','wb') as f:
|
| 37 |
f.write(input_file)
|
|
|
|
| 31 |
upload_content = input_file
|
| 32 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
| 33 |
submission_repo.git_pull()
|
| 34 |
+
filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 35 |
now = datetime.datetime.now()
|
| 36 |
with open(f'{filename}.zip','wb') as f:
|
| 37 |
f.write(input_file)
|