#!/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