test_final / start.sh
Abdelrahman Almatrooshi
fix hybrid combiner path; retry L2CS download at startup
e707e31
#!/bin/bash
set -e
# Writable matplotlib config (HF / read-only home)
export MPLCONFIGDIR="${MPLCONFIGDIR:-/tmp/matplotlib}"
mkdir -p "$MPLCONFIGDIR"
echo "=== Resolving LFS pointers ==="
python resolve_lfs.py
echo "=== L2CS weights (retry if missing; build-time download may fail) ==="
python download_l2cs_weights.py || echo "[WARN] L2CS weights download failed — eye gaze unavailable"
echo "=== Starting FocusGuard ==="
exec uvicorn main:app --host 0.0.0.0 --port 7860 --log-level info