video_editing_poc/tools/run_local_cv_worker.sh

16 lines
370 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
HOST="${LOCAL_CV_HOST:-127.0.0.1}"
PORT="${LOCAL_CV_PORT:-8091}"
if [ ! -d ".venv-local-cv" ]; then
python3 -m venv .venv-local-cv
fi
. .venv-local-cv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r tools/local_cv_requirements.txt
exec uvicorn tools.local_cv_worker:app --host "$HOST" --port "$PORT"