Skip to content

Commit 76b4d55

Browse files
samaloneyCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e84028b commit 76b4d55

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Settings(BaseSettings):
88
data_path: Path = Path(os.getenv("DATAPATH", "/arccnet/data"))
9-
models_path: Path = Path(os.getenv("MODESLPATH", "/arccnet/models"))
9+
models_path: Path = Path(os.getenv("MODELSPATH", "/arccnet/models"))
1010

1111

1212
settings = Settings()

app/model_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def download_and_extract_model(
1717
model_url,
1818
model_name,
1919
*,
20-
extracted_weights_filename="model-data/comet-torch-model.pth",
2120
model_data_path,
21+
extracted_weights_filename="model-data/comet-torch-model.pth",
2222
):
2323
"""
2424
Downloads and extracts a model archive.
@@ -85,7 +85,7 @@ def download_and_extract_model(
8585
# If extracted file has different name, create expected path
8686
actual_extracted_path = model_cache_dir / target_file
8787
if actual_extracted_path != extracted_path:
88-
actual_extracted_path.move(extracted_path)
88+
actual_extracted_path.replace(extracted_path)
8989

9090
if not extracted_path.exists():
9191
raise FileNotFoundError(f"Weights file not found at {extracted_path}")

0 commit comments

Comments
 (0)