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

Update ressource requirements.

parent 388e0433
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,8 @@ def ocr(): ...@@ -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(): ...@@ -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}),
......
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