From e310149a25b664bf0ba09d00f2660612c6525911 Mon Sep 17 00:00:00 2001 From: Christopher Rhodes <christopher.rhodes@embl.de> Date: Wed, 22 May 2024 14:57:29 +0200 Subject: [PATCH] Pass model-associated request data in body, not query --- model_server/clients/ilastik_map_objects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model_server/clients/ilastik_map_objects.py b/model_server/clients/ilastik_map_objects.py index d04a1fbc..c7febda3 100644 --- a/model_server/clients/ilastik_map_objects.py +++ b/model_server/clients/ilastik_map_objects.py @@ -44,7 +44,7 @@ def main(request_func, in_abspath, params): resp = request_func( 'PUT', '/ilastik/seg/load/', - { + body={ 'project_file': px_ilp, 'duplicate': False, }, @@ -55,7 +55,7 @@ def main(request_func, in_abspath, params): # load object classifier resp = request_func( 'PUT', '/ilastik/pxmap_to_obj/load/', - { + body={ 'project_file': ob_ilp, 'duplicate': False, }, @@ -67,7 +67,7 @@ def main(request_func, in_abspath, params): resp = request_func( 'PUT', '/ilastik/pixel_then_object_classification/infer', - { + body={ 'px_model_id': id_px_mod, 'ob_model_id': id_ob_mod, 'input_filename': in_file, -- GitLab