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:
plean committed 2026-11-18 02:34:13 +00:00
1 parent 933f33e70a
commit 61a0f353cd
6 files changed
+48 -23

No files matched your search

+3 -4
View File
@@ -4,21 +4,20 @@ numpy==1.26.4 # torch/opencv ecosystem pin from upstream
opencv-python-headless
pillow
matplotlib
requests
tqdm
supervision==0.18.0
ultralytics==8.3.70 # fallback detector path only; default is vendored YOLOv9-E
transformers>=4.45,<4.50
accelerate
timm
einops==0.8.0 # florence-2 remote code
easyocr # default OCR engine
paddleocr==2.10.0 # optional OCR engine (paddlepaddle 3.x dropped use_gpu kwarg upstream uses)
paddlepaddle==3.0.0
huggingface_hub
# serving
fastapi
uvicorn[standard]
requests
# MCP stdio shim (>=2.x: mcp.server.mcpserver.MCPServer; 1.x path was
# mcp.server.fastmcp.FastMCP - adjust import if you pin lower)
mcp>=2.0.0
# Optional engines are deliberately NOT here - see README "Optional engines"
# (paddleocr/paddlepaddle: alternate OCR; ultralytics: AGPL, unsupported path).