logs
Browse files- src/submission/submit.py +5 -0
src/submission/submit.py
CHANGED
@@ -133,6 +133,9 @@ def process_submission(file_path: str, metadata: Dict, version="v0") -> str:
|
|
133 |
print(f"Submission path: {submission_path}")
|
134 |
print(f"Target file: {target_file}")
|
135 |
print(f"Results dir: {results_dir}")
|
|
|
|
|
|
|
136 |
print(f"Guardbench dir: {guardbench_dir}")
|
137 |
print(f"Guard model type: {guard_model_type}")
|
138 |
print(f"Model name: {model_name}")
|
@@ -143,6 +146,8 @@ def process_submission(file_path: str, metadata: Dict, version="v0") -> str:
|
|
143 |
|
144 |
|
145 |
shutil.copy2(file_path, target_file)
|
|
|
|
|
146 |
|
147 |
try:
|
148 |
# Initialize GuardBench context
|
|
|
133 |
print(f"Submission path: {submission_path}")
|
134 |
print(f"Target file: {target_file}")
|
135 |
print(f"Results dir: {results_dir}")
|
136 |
+
print(f"guarbench path: {os.system('ls /home/user/app/guard-bench-submodule')}")
|
137 |
+
print(f"guarbench results path: {os.system('ls /home/user/app/guard-bench-submodule/results')}")
|
138 |
+
|
139 |
print(f"Guardbench dir: {guardbench_dir}")
|
140 |
print(f"Guard model type: {guard_model_type}")
|
141 |
print(f"Model name: {model_name}")
|
|
|
146 |
|
147 |
|
148 |
shutil.copy2(file_path, target_file)
|
149 |
+
print(f"Copied file to target file: {target_file}")
|
150 |
+
print(f" ls /home/user/app/guard-bench-submodule/results/guardbench_dataset_1k_public/: {os.system('ls /home/user/app/guard-bench-submodule/results/guardbench_dataset_1k_public/')}")
|
151 |
|
152 |
try:
|
153 |
# Initialize GuardBench context
|