Commit History
-
docs(card-ocr): operator runbook for the Hugging Face Space deploy
The Dockerfile + Spaces frontmatter + hf git remote landed in eac3468, but the actual deploy procedure (HF account, repo secret, hf-remote auth, subtree push, smoke tests) was carried in head only. Write it down so it survives. Also retarget the .env.example OCR block at the HF Space URL and bump the example timeout to 30s -- the free CPU tier sleeps after idle and first-call cold-load is 30-60s. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1035f0d -
chore(card-ocr): migrate sidecar deployment from Railway to Hugging Face Space
Sagar Deswal +1: Claude Opus 4.7 (1M context)Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>72de53b
-
feat(card-ocr): PaddleOCR sidecar with Railway-ready config
- Dockerfile: pin python:3.11-slim (paddlepaddle 2.6.2 wheel needs 3.11), drop opencv-python + opencv-contrib-python so headless variant is the only libcv on the path (prevents double-free on first OCR), bake the English model weights into the image so the first request after a deploy isn't a ~10s download. - main.py: emit per-line `blocks` with text + confidence so the Django side can attribute Haiku-extracted fields back to a specific OCR line (per-field confidence aggregation). - railway.json: explicit Dockerfile builder + dual-stack `--host ::` + healthcheck-friendly `--port \${PORT:-8001}` start command so Railway's private network can route to the container. - .dockerignore: belt-and-suspenders so build scratch / test files don't leak into the production image. - docker-compose.yml: card-ocr service block with healthcheck + service_started dep on backend (relaxed from service_healthy so local stub-mode dev doesn't block on the heavy sidecar build). - .env.ex…6f32872