Fresh-machine hardening from review
- util: drop dead openai/json/sys/requests/PIL extras (openai import would ImportError before engine load); ultralytics fallback path now raises (AGPL isolation - only MIT icon_detect_v3 ships) - requirements: default path only; paddle + ultralytics moved to README optional section - setup.sh: venv fallback for distros without ensurepip; --skip-weights verified - start.sh: bind 127.0.0.1 by default (LAN = explicit opt-in) - docs: absolute-path !cat examples, HF startup/airgap notes, token placement, security defaults
This commit is contained in:
1 parent
933f33e70a
commit
61a0f353cd
6 files changed
+48
-23
No files matched your search
@@ -37,7 +37,8 @@ if [[ "${OMNI_CUDA_DEVICE:-0}" == "-1" ]]; then
|
||||
else
|
||||
export CUDA_VISIBLE_DEVICES="${OMNI_CUDA_DEVICE:-0}"
|
||||
fi
|
||||
nohup "$PY" -m uvicorn omni_api.server:app --host "${OMNI_API_HOST:-0.0.0.0}" \
|
||||
# default: localhost only - set OMNI_API_HOST=0.0.0.0 deliberately for LAN use
|
||||
nohup "$PY" -m uvicorn omni_api.server:app --host "${OMNI_API_HOST:-127.0.0.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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user