Upload 10 files
Browse files- src/bucket.py +2 -2
src/bucket.py
CHANGED
|
@@ -398,7 +398,7 @@ def write_launch_metadata(run_id: str, *, bucket_source: str, payload: dict[str,
|
|
| 398 |
"created_at": launch.get("created_at") or "",
|
| 399 |
"updated_at": launch.get("updated_at") or launch.get("created_at") or "",
|
| 400 |
"selected_hardware": launch.get("preferred_space_hardware") or launch.get("selected_hardware") or "",
|
| 401 |
-
"artifacts_url": f"https://huggingface.co/buckets/{bucket_source}/tree/{settings.bucket_runs_prefix.strip().strip(
|
| 402 |
}
|
| 403 |
write_json(f"{paths.root}/summary.json", summary, token=token)
|
| 404 |
# Minimal state fallback: progress polling can treat it as running until
|
|
@@ -889,7 +889,7 @@ def summarize_run_bundle(run_id: str, bundle: dict[str, Any], *, bucket_source:
|
|
| 889 |
"recommendation_source": smoke.get("recommendation_source") or "",
|
| 890 |
"expected_output_type": smoke.get("expected_output_type") or state.get("expected_output_type") or launch.get("expected_output_type") or "",
|
| 891 |
"pi_model_resolution": bundle.get("pi_model_resolution") or state.get("pi_model_resolution") or {},
|
| 892 |
-
"artifacts_url": f"https://huggingface.co/buckets/{bucket_source}/tree/{settings.bucket_runs_prefix.strip().strip(
|
| 893 |
}
|
| 894 |
|
| 895 |
|
|
|
|
| 398 |
"created_at": launch.get("created_at") or "",
|
| 399 |
"updated_at": launch.get("updated_at") or launch.get("created_at") or "",
|
| 400 |
"selected_hardware": launch.get("preferred_space_hardware") or launch.get("selected_hardware") or "",
|
| 401 |
+
"artifacts_url": f"https://huggingface.co/buckets/{bucket_source}/tree/{(settings.bucket_runs_prefix.strip().strip('/') or 'runs')}/{run_id}",
|
| 402 |
}
|
| 403 |
write_json(f"{paths.root}/summary.json", summary, token=token)
|
| 404 |
# Minimal state fallback: progress polling can treat it as running until
|
|
|
|
| 889 |
"recommendation_source": smoke.get("recommendation_source") or "",
|
| 890 |
"expected_output_type": smoke.get("expected_output_type") or state.get("expected_output_type") or launch.get("expected_output_type") or "",
|
| 891 |
"pi_model_resolution": bundle.get("pi_model_resolution") or state.get("pi_model_resolution") or {},
|
| 892 |
+
"artifacts_url": f"https://huggingface.co/buckets/{bucket_source}/tree/{(settings.bucket_runs_prefix.strip().strip('/') or 'runs')}/{run_id}",
|
| 893 |
}
|
| 894 |
|
| 895 |
|