Spaces:
Sleeping
Sleeping
logs
Browse files- src/submission/submit.py +1 -10
src/submission/submit.py
CHANGED
|
@@ -130,20 +130,11 @@ def process_submission(file_path: str, metadata: Dict, version="v0") -> str:
|
|
| 130 |
repo_type="dataset",
|
| 131 |
commit_message=f"Add raw submission for {model_name}"
|
| 132 |
)
|
|
|
|
| 133 |
|
| 134 |
print(f"Submission path: {submission_path}")
|
| 135 |
print(f"Target file: {target_file}")
|
| 136 |
print(f"Results dir: {results_dir}")
|
| 137 |
-
print(f"guarbench path: {subprocess.check_output('ls /home/user/app/guard-bench-submodule', shell=True).decode('utf-8')}")
|
| 138 |
-
print(f"guarbench results path: {subprocess.check_output('ls /home/user/app/guard-bench-submodule/results', shell=True).decode('utf-8')}")
|
| 139 |
-
|
| 140 |
-
print(f"Guardbench dir: {guardbench_dir}")
|
| 141 |
-
print(f"Guard model type: {guard_model_type}")
|
| 142 |
-
print(f"Model name: {model_name}")
|
| 143 |
-
print(f"Model name safe: {model_name_safe}")
|
| 144 |
-
print(f"Version: {version}")
|
| 145 |
-
print(f"Metadata: {metadata}")
|
| 146 |
-
print(f"File path: {file_path}")
|
| 147 |
|
| 148 |
|
| 149 |
shutil.copy2(file_path, target_file)
|
|
|
|
| 130 |
repo_type="dataset",
|
| 131 |
commit_message=f"Add raw submission for {model_name}"
|
| 132 |
)
|
| 133 |
+
os.makedirs(results_dir + "/guardbench_dataset_1k_public", exist_ok=True)
|
| 134 |
|
| 135 |
print(f"Submission path: {submission_path}")
|
| 136 |
print(f"Target file: {target_file}")
|
| 137 |
print(f"Results dir: {results_dir}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
|
| 140 |
shutil.copy2(file_path, target_file)
|