Skip to content

Commit ae0237c

Browse files
baogorekclaude
andcommitted
fix: correct calibration input paths for HuggingFace download
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 08e851d commit ae0237c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

modal_app/local_area.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,10 @@ def coordinate_publish(
360360
calibration_dir = staging_dir / "calibration_inputs"
361361
calibration_dir.mkdir(parents=True, exist_ok=True)
362362

363-
weights_path = calibration_dir / "w_district_calibration.npy"
364-
dataset_path = calibration_dir / "stratified_extended_cps.h5"
365-
db_path = calibration_dir / "policy_data.db"
363+
# hf_hub_download preserves directory structure, so files are in calibration/ subdir
364+
weights_path = calibration_dir / "calibration" / "w_district_calibration.npy"
365+
dataset_path = calibration_dir / "calibration" / "stratified_extended_cps.h5"
366+
db_path = calibration_dir / "calibration" / "policy_data.db"
366367

367368
if not all(p.exists() for p in [weights_path, dataset_path, db_path]):
368369
print("Downloading calibration inputs...")

0 commit comments

Comments
 (0)