SamDNX's picture
Add 2nd Elix video per word (143 samples) + one-command run.sh
3b55737
Raw
History Blame Contribute Delete
654 Bytes
#!/usr/bin/env bash
# One-command launcher for the LSF interpreter web UI.
# Ships pre-trained (72 LSF signs). Creates the venv on first run, then serves.
#
# ./run.sh # http://127.0.0.1:8000
# ./run.sh 0.0.0.0:8000 # bind all interfaces (use localhost for the camera)
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -d .venv ]; then
echo "First run — creating the virtual environment (a few minutes)…"
./setup.sh
fi
# shellcheck disable=SC1091
source .venv/bin/activate
ADDR="${1:-127.0.0.1:8000}"
echo "LSF interpreter → http://${ADDR} (allow the camera; Ctrl+C to stop)"
exec python web/manage.py runserver "$ADDR"