#!/bin/bash
set -euo pipefail

# Validate the blla segmentation base model and download it if missing or
# incompatible. ketos 7 dropped support for legacy PyTorch ZIP archives —
# this ensures the volume always holds a loadable CoreML protobuf model.
python3 /app/ensure_blla_model.py

exec uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1
