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':