ocr: the surya deep check imported a module that does not exist
My own check broke the build: `from surya.common.surya.schema import
TaskNames` is not a path in surya-ocr 0.22.1, so the ocr image failed with
ModuleNotFoundError at the venv deep check — I wrote an import from memory
instead of reading what the worker uses.
It now imports what codai/ocr/workers/ocr_worker.py actually constructs,
DetectionPredictor and RecognitionPredictor, and keeps the pillow assertion.
The test asserts those paths are present and that the invented one is gone.
Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment