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:
1 parent
e366b80ff7
commit
933f33e70a
1 file changed
+1
-1
@@ -37,7 +37,7 @@ if [[ "${OMNI_CUDA_DEVICE:-0}" == "-1" ]]; then
|
|||||||
else
|
else
|
||||||
export CUDA_VISIBLE_DEVICES="${OMNI_CUDA_DEVICE:-0}"
|
export CUDA_VISIBLE_DEVICES="${OMNI_CUDA_DEVICE:-0}"
|
||||||
fi
|
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 &
|
--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"
|
echo "started (pid $!) port $PORT card ${OMNI_CUDA_DEVICE:-0}; first parse pays a ~10 s lazy OCR load; log: $LOG"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user