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",