Fix paths
Browse files
src/submission_uploader.py
CHANGED
|
@@ -54,7 +54,7 @@ class SubmissionUploader:
|
|
| 54 |
# add predictions files
|
| 55 |
commit_operations = [
|
| 56 |
CommitOperationAdd(
|
| 57 |
-
path_in_repo=f"{task_id}/{model_folder}/
|
| 58 |
path_or_fileobj=filename,
|
| 59 |
)
|
| 60 |
for filename in filenames
|
|
@@ -72,7 +72,7 @@ class SubmissionUploader:
|
|
| 72 |
json.dump(metadata_dict, f)
|
| 73 |
commit_operations.append(
|
| 74 |
CommitOperationAdd(
|
| 75 |
-
path_in_repo=f"{task_id}/predictions/metadata.json",
|
| 76 |
path_or_fileobj="metadata.json",
|
| 77 |
)
|
| 78 |
)
|
|
|
|
| 54 |
# add predictions files
|
| 55 |
commit_operations = [
|
| 56 |
CommitOperationAdd(
|
| 57 |
+
path_in_repo=f"{task_id}/predictions/{model_folder}/{os.path.basename(filename)}",
|
| 58 |
path_or_fileobj=filename,
|
| 59 |
)
|
| 60 |
for filename in filenames
|
|
|
|
| 72 |
json.dump(metadata_dict, f)
|
| 73 |
commit_operations.append(
|
| 74 |
CommitOperationAdd(
|
| 75 |
+
path_in_repo=f"{task_id}/predictions/{model_folder}/metadata.json",
|
| 76 |
path_or_fileobj="metadata.json",
|
| 77 |
)
|
| 78 |
)
|