Skip to content

Commit

Permalink
Merge pull request #952 from roboflow/fix/pass-is-preview-when-testin…
Browse files Browse the repository at this point in the history
…g-workflow

Pass is_preview if available when handling workflow request
  • Loading branch information
PawelPeczek-Roboflow authored Jan 16, 2025
2 parents 789f591 + a40d88d commit ace086e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inference/core/interfaces/http/http_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ace086e

Please sign in to comment.