Skip to content

Commit f7911ec

Browse files
committed
Updated docker settings, removed unnecessary package.
1 parent 1b0a1ff commit f7911ec

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
TMP_FILE_DIR = os.path.join(ROOT_DIR, "tmp")
1010

1111
# Should we actually ocr or just extract text from PDFs ? NOTE: OCR IS STILL APPLIED TO IMAGES if detected | possible vals : "OCR", "NO_OCR"
12-
OPERATION_MODE= os.environ.get("OCR_SERVICE_OPERATION_MODE", "NO_OCR")
12+
OPERATION_MODE= os.environ.get("OCR_SERVICE_OPERATION_MODE", "OCR")
1313

1414
# basic app settings
1515
OCR_SERVICE_PORT = os.environ.get("OCR_SERVICE_PORT", 8090)

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ services:
2222
- OMP_THREAD_LIMIT=1
2323

2424
# ocr service variables
25-
- OCR_SERVICE_THREADS=1
2625
- OCR_SERVICE_LOG_LEVEL=20
27-
- OCR_SERVICE_CPU_THREADS=1
28-
- OCR_SERVICE_CONVERTER_THREADS=1
26+
- OCR_SERVICE_CPU_THREADS=4
27+
- OCR_SERVICE_CONVERTER_THREADS=4
28+
- OCR_SERVICE_OPERATION_MODE=OCR
2929
ulimits:
3030
memlock:
3131
soft: -1

ocr_service/processor/processor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import time
88
import traceback
99
import uuid
10-
import pikepdf
1110

1211
from subprocess import PIPE, Popen
1312
from io import BytesIO

0 commit comments

Comments
 (0)