From a40d88d30e1eda384ca4640ead6123cea58fb02d Mon Sep 17 00:00:00 2001 From: Grzegorz Klimaszewski <166530809+grzegorz-roboflow@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:47:07 +0100 Subject: [PATCH] Pass is_preview if available when handling workflow request --- inference/core/interfaces/http/http_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inference/core/interfaces/http/http_api.py b/inference/core/interfaces/http/http_api.py index 95eac9057c..c5fef98681 100644 --- a/inference/core/interfaces/http/http_api.py +++ b/inference/core/interfaces/http/http_api.py @@ -725,9 +725,13 @@ def process_workflow_inference_request( prevent_local_images_loading=True, profiler=profiler, ) + is_preview = False + if hasattr(workflow_request, "is_preview"): + is_preview = workflow_request.is_preview workflow_results = execution_engine.run( runtime_parameters=workflow_request.inputs, serialize_results=True, + is_preview=is_preview, ) with profiler.profile_execution_phase( name="workflow_results_filtering",