receipt-ocr / main.py

Commit History

Sync from GitHub main: parser fixes (SUB-TOTAL, 2-digit qty, barcode strip), ISO dates, conditional second OCR pass, non-blocking model load, OCR_SHARED_SECRET gate + 15MB cap, TIMING behind env var
a821617

sinful1992 commited on

Reconcile with GitHub repo (diverged since 2026-05-20)
ee66b5c

sinful1992 Claude Sonnet 5 commited on

fix(logging): use print(flush=True) for TIMING lines so they appear in HF logs
3a00f27

sinful1 commited on

fix(ocr): run warm-up in background so server accepts connections immediately
7ae5e53

sinful1992 commited on

chore(ocr): add per-step timing logs to identify bottleneck
d3ab1b0

sinful1992 commited on

fix(ocr): warm up inference engine at startup and add /warmup endpoint
346a300

sinful1992 commited on

feat: initial OCR server deploy
619b919

sinful1992 commited on