start.sh: launch uvicorn as 'python -m uvicorn' (module form works with any interpreter; PATH-based lookup failed without .venv)

This commit is contained in:
plean committed 2026-11-18 02:32:40 +00:00
1 parent e366b80ff7
commit 933f33e70a
1 file changed
+1 -1
+1 -1
View File
@@ -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"