Add safe YOLO model env configurator
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-06 16:43:53 +02:00
parent c1f81adeea
commit 72ee6233a6
8 changed files with 414 additions and 0 deletions
+9
View File
@@ -263,6 +263,15 @@ YOLO_ENABLED=true
YOLO_MODEL_PATH=/app/models/local-model.pt
```
The root helper can write those values safely after a local model is placed:
```bash
python scripts/configure_yolo_model.py \
--models-dir /mnt/user/appdata/geointel/models \
--env-file /mnt/user/appdata/geointel/.env \
--apply
```
The smoke loads only the supplied local model file, does not run inference and
does not download weights.