diff --git a/.github/workflows/test_lint.yml b/.github/workflows/test_lint.yml index 735640a..3461298 100644 --- a/.github/workflows/test_lint.yml +++ b/.github/workflows/test_lint.yml @@ -9,11 +9,12 @@ jobs: matrix: python-version: ["3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/app/Services/ocr_services.py b/app/Services/ocr_services.py index 30c5775..1c4def1 100644 --- a/app/Services/ocr_services.py +++ b/app/Services/ocr_services.py @@ -54,7 +54,7 @@ class EasyOCRService(OCRService): def __init__(self): super().__init__() # noinspection PyPackageRequirements - import easyocr + import easyocr # pylint: disable=import-error self._easyOCRModule = easyocr.Reader(config.ocr_search.ocr_language, gpu=True if self._device == "cuda" else False) logger.success("easyOCR loaded successfully")