mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Update ressource requirements.
This commit is contained in:
parent
388e0433fd
commit
1d6f1a8933
@ -18,8 +18,8 @@ def ocr():
|
|||||||
ocr_job = Job(creator=current_user._get_current_object(),
|
ocr_job = Job(creator=current_user._get_current_object(),
|
||||||
description=new_ocr_job_form.description.data,
|
description=new_ocr_job_form.description.data,
|
||||||
service="ocr",
|
service="ocr",
|
||||||
ressources=json.dumps({"n_cores": 2,
|
ressources=json.dumps({"n_cores": 4,
|
||||||
"mem_mb": 4096}),
|
"mem_mb": 8192}),
|
||||||
service_args=json.dumps({"args": ["--keep-intermediates",
|
service_args=json.dumps({"args": ["--keep-intermediates",
|
||||||
"--skip-binarisation"],
|
"--skip-binarisation"],
|
||||||
"lang": new_ocr_job_form.language.data,
|
"lang": new_ocr_job_form.language.data,
|
||||||
@ -71,8 +71,8 @@ def nlp():
|
|||||||
nlp_job = Job(creator=current_user._get_current_object(),
|
nlp_job = Job(creator=current_user._get_current_object(),
|
||||||
description=new_nlp_job_form.description.data,
|
description=new_nlp_job_form.description.data,
|
||||||
service="nlp",
|
service="nlp",
|
||||||
ressources=json.dumps({"n_cores": 1,
|
ressources=json.dumps({"n_cores": 2,
|
||||||
"mem_mb": 2048}),
|
"mem_mb": 4096}),
|
||||||
service_args=json.dumps({"args": [],
|
service_args=json.dumps({"args": [],
|
||||||
"lang": new_nlp_job_form.language.data,
|
"lang": new_nlp_job_form.language.data,
|
||||||
"version": new_nlp_job_form.version.data}),
|
"version": new_nlp_job_form.version.data}),
|
||||||
|
Loading…
Reference in New Issue
Block a user