mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-08-16 20:51:07 +00:00

### What problem does this PR solve? it would be fail if PARALLEL_DEVICES = None in OCR class , because it pass 0 to TextDetector and TextRecognizer init method. and It would be simpler to set 0 as the default value for PARALLEL_DEVICES. ### Type of change - [x] Refactoring