From 933f33e70a7c4c1470e3f1d8fdcbf91fcbee72e9 Mon Sep 17 00:00:00 2001 From: plean Date: Wed, 18 Nov 2026 02:32:40 +0000 Subject: [PATCH] start.sh: launch uvicorn as 'python -m uvicorn' (module form works with any interpreter; PATH-based lookup failed without .venv) --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index baa5772..8f5a4e0 100755 --- a/start.sh +++ b/start.sh @@ -37,7 +37,7 @@ if [[ "${OMNI_CUDA_DEVICE:-0}" == "-1" ]]; then else export CUDA_VISIBLE_DEVICES="${OMNI_CUDA_DEVICE:-0}" fi -nohup "${ENVBIN:+$ENVBIN/}uvicorn" omni_api.server:app --host "${OMNI_API_HOST:-0.0.0.0}" \ +nohup "$PY" -m uvicorn omni_api.server:app --host "${OMNI_API_HOST:-0.0.0.0}" \ --port "$PORT" --log-level warning >>"$LOG" 2>&1 & echo "started (pid $!) port $PORT card ${OMNI_CUDA_DEVICE:-0}; first parse pays a ~10 s lazy OCR load; log: $LOG"