• Stefy Lanza (nextime / spora )'s avatar
    ocr: the surya deep check imported a module that does not exist · e72edf08
    Stefy Lanza (nextime / spora ) authored
    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: 's avatarClaude Opus 5 <noreply@anthropic.com>
    e72edf08
ocr.venv-surya.check 860 Bytes