Skip to content

Commit

Permalink
Add cache & pylint ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 25, 2023
1 parent d119def commit 0c475ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/Services/ocr_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0c475ed

Please sign in to comment.