Spaces:
Sleeping
Sleeping
- src/submission/submit.py +3 -3
src/submission/submit.py
CHANGED
|
@@ -41,10 +41,10 @@ def add_new_eval(
|
|
| 41 |
|
| 42 |
path = f"{EVAL_REQUESTS_PATH}/{version}/{folder_path}/{file_name}"
|
| 43 |
|
| 44 |
-
|
| 45 |
print("Uploading eval file")
|
| 46 |
API.upload_file(
|
| 47 |
-
path_or_fileobj=
|
| 48 |
path_in_repo=path.split("eval-queue/")[1],
|
| 49 |
repo_id=QUEUE_REPO,
|
| 50 |
repo_type="dataset",
|
|
@@ -52,7 +52,7 @@ def add_new_eval(
|
|
| 52 |
)
|
| 53 |
|
| 54 |
# Remove the local file
|
| 55 |
-
|
| 56 |
|
| 57 |
|
| 58 |
# Seems good, creating the eval
|
|
|
|
| 41 |
|
| 42 |
path = f"{EVAL_REQUESTS_PATH}/{version}/{folder_path}/{file_name}"
|
| 43 |
|
| 44 |
+
shutil.copy(upload_file, file_name)
|
| 45 |
print("Uploading eval file")
|
| 46 |
API.upload_file(
|
| 47 |
+
path_or_fileobj=file_name,
|
| 48 |
path_in_repo=path.split("eval-queue/")[1],
|
| 49 |
repo_id=QUEUE_REPO,
|
| 50 |
repo_type="dataset",
|
|
|
|
| 52 |
)
|
| 53 |
|
| 54 |
# Remove the local file
|
| 55 |
+
os.remove(file_name)
|
| 56 |
|
| 57 |
|
| 58 |
# Seems good, creating the eval
|