From 28b1461ef9b95130b190a11c9759f7426c11b293 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 24 Nov 2022 12:24:11 +0100 Subject: [PATCH] Fix tesseract-ocr-pipeline job creation process --- app/daemon/job_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/daemon/job_utils.py b/app/daemon/job_utils.py index cfb362db..5d112d71 100644 --- a/app/daemon/job_utils.py +++ b/app/daemon/job_utils.py @@ -109,7 +109,7 @@ def _create_job_service(job): job.status = JobStatus.FAILED return models_mount_source = model.path - models_mount_target = f'/usr/local/share/tessdata/{model.filename}' + models_mount_target = f'/usr/local/share/tessdata/{model.id}.traineddata' models_mount = f'{models_mount_source}:{models_mount_target}:ro' mounts.append(models_mount) elif job.service == 'spacy-nlp-pipeline':