mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Fix tesseract-ocr-pipeline job creation process
This commit is contained in:
parent
9c49c164de
commit
28b1461ef9
@ -109,7 +109,7 @@ def _create_job_service(job):
|
|||||||
job.status = JobStatus.FAILED
|
job.status = JobStatus.FAILED
|
||||||
return
|
return
|
||||||
models_mount_source = model.path
|
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'
|
models_mount = f'{models_mount_source}:{models_mount_target}:ro'
|
||||||
mounts.append(models_mount)
|
mounts.append(models_mount)
|
||||||
elif job.service == 'spacy-nlp-pipeline':
|
elif job.service == 'spacy-nlp-pipeline':
|
||||||
|
Loading…
Reference in New Issue
Block a user