Fix tesseract-ocr-pipeline job creation process

This commit is contained in:
Patrick Jentsch 2022-11-24 12:24:11 +01:00
parent 9c49c164de
commit 28b1461ef9

View File

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