Spaces:
Sleeping
Sleeping
Abdelrahman Almatrooshi commited on
Commit ·
e707e31
1
Parent(s): 6fc0285
fix hybrid combiner path; retry L2CS download at startup
Browse files- checkpoints/hybrid_focus_config.json +1 -1
- start.sh +7 -0
checkpoints/hybrid_focus_config.json
CHANGED
|
@@ -10,5 +10,5 @@
|
|
| 10 |
"mar_yawn_threshold": 0.55,
|
| 11 |
"metric": "f1",
|
| 12 |
"combiner": "logistic",
|
| 13 |
-
"combiner_path": "
|
| 14 |
}
|
|
|
|
| 10 |
"mar_yawn_threshold": 0.55,
|
| 11 |
"metric": "f1",
|
| 12 |
"combiner": "logistic",
|
| 13 |
+
"combiner_path": "hybrid_combiner.joblib"
|
| 14 |
}
|
start.sh
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -e
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
echo "=== Resolving LFS pointers ==="
|
| 5 |
python resolve_lfs.py
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
echo "=== Starting FocusGuard ==="
|
| 8 |
exec uvicorn main:app --host 0.0.0.0 --port 7860 --log-level info
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -e
|
| 3 |
|
| 4 |
+
# Writable matplotlib config (HF / read-only home)
|
| 5 |
+
export MPLCONFIGDIR="${MPLCONFIGDIR:-/tmp/matplotlib}"
|
| 6 |
+
mkdir -p "$MPLCONFIGDIR"
|
| 7 |
+
|
| 8 |
echo "=== Resolving LFS pointers ==="
|
| 9 |
python resolve_lfs.py
|
| 10 |
|
| 11 |
+
echo "=== L2CS weights (retry if missing; build-time download may fail) ==="
|
| 12 |
+
python download_l2cs_weights.py || echo "[WARN] L2CS weights download failed — eye gaze unavailable"
|
| 13 |
+
|
| 14 |
echo "=== Starting FocusGuard ==="
|
| 15 |
exec uvicorn main:app --host 0.0.0.0 --port 7860 --log-level info
|