Spaces:
Runtime error
Runtime error
Update process_runs.py
Browse files- process_runs.py +3 -2
process_runs.py
CHANGED
|
@@ -73,14 +73,15 @@ def update_requests(requests, all_attempts, failed_attempts):
|
|
| 73 |
"""
|
| 74 |
requests_df = requests.to_pandas()
|
| 75 |
# Each line is a run directory, where
|
| 76 |
-
# run_dir="/runs/${experiment_name}/${backend_model}/${now}"
|
|
|
|
| 77 |
for line in all_attempts:
|
| 78 |
print(f"Checking {line}")
|
| 79 |
split_run_dir = line.strip().strip("/").split("/")
|
| 80 |
print(f"Processing run directory {split_run_dir}")
|
| 81 |
task = split_run_dir[1]
|
| 82 |
print(f"Task is {task}")
|
| 83 |
-
model = "/".join([split_run_dir[2], split_run_dir[3])
|
| 84 |
print(f"Model is is {model}")
|
| 85 |
traceback_error = check_for_traceback(line)
|
| 86 |
if traceback_error != "":
|
|
|
|
| 73 |
"""
|
| 74 |
requests_df = requests.to_pandas()
|
| 75 |
# Each line is a run directory, where
|
| 76 |
+
# run_dir="/runs/${experiment_name}/${backend_model}/${now}", where
|
| 77 |
+
# ${backend_model} is ${organization}/${model_name}
|
| 78 |
for line in all_attempts:
|
| 79 |
print(f"Checking {line}")
|
| 80 |
split_run_dir = line.strip().strip("/").split("/")
|
| 81 |
print(f"Processing run directory {split_run_dir}")
|
| 82 |
task = split_run_dir[1]
|
| 83 |
print(f"Task is {task}")
|
| 84 |
+
model = "/".join([split_run_dir[2], split_run_dir[3]])
|
| 85 |
print(f"Model is is {model}")
|
| 86 |
traceback_error = check_for_traceback(line)
|
| 87 |
if traceback_error != "":
|