From 5dd4ee91aaf0215279b77d54160c9362f0d0c487 Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Fri, 3 Nov 2023 11:03:47 +0000 Subject: [PATCH] respond to feedback, run black and isort --- roboflow/models/video.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/roboflow/models/video.py b/roboflow/models/video.py index 191a593e..092d6c28 100644 --- a/roboflow/models/video.py +++ b/roboflow/models/video.py @@ -92,14 +92,12 @@ def predict( url = urljoin(API_URL, "/video_upload_signed_url/?api_key=", self.__api_key) - # get video frame rate - if fps > 30: raise Exception("FPS must be less than or equal to 30.") for model in additional_models: if model not in SUPPORTED_ADDITIONAL_MODELS: - raise Exception(f"Model {model} is not supported for video inference.") + raise Exception(f"Model {model} is no t supported for video inference.") if inference_type not in SUPPORTED_ROBOFLOW_MODELS: raise Exception( @@ -181,7 +179,7 @@ def poll_for_results(self, job_id: str = None) -> dict: except Exception as e: print(e) raise Exception("Error polling for results.") - + if not response.ok: raise Exception("Error polling for results.")