Skip to content
Snippets Groups Projects
Commit 28b1461e authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix tesseract-ocr-pipeline job creation process

parent 9c49c164
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment