From 7e1a93d4e78a4a6024733bcbe4e9546f53ff534e Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Tue, 31 Oct 2023 17:35:22 +0000 Subject: [PATCH] update status check --- roboflow/models/inference.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roboflow/models/inference.py b/roboflow/models/inference.py index 7731290e..b1c157b2 100644 --- a/roboflow/models/inference.py +++ b/roboflow/models/inference.py @@ -279,9 +279,7 @@ def poll_for_video_results(self, job_id: str = None) -> dict: data = response.json() - # for model in infer_models: - # if model["infer_success"] == 1: - if data.get("output_signed_url") is None: + if data.get("status") != 0: return {} output_signed_url = data["output_signed_url"]