Skip to content

Commit 5dd4ee9

Browse files
committed
respond to feedback, run black and isort
1 parent 27cbecc commit 5dd4ee9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

roboflow/models/video.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,12 @@ def predict(
9292

9393
url = urljoin(API_URL, "/video_upload_signed_url/?api_key=", self.__api_key)
9494

95-
# get video frame rate
96-
9795
if fps > 30:
9896
raise Exception("FPS must be less than or equal to 30.")
9997

10098
for model in additional_models:
10199
if model not in SUPPORTED_ADDITIONAL_MODELS:
102-
raise Exception(f"Model {model} is not supported for video inference.")
100+
raise Exception(f"Model {model} is no t supported for video inference.")
103101

104102
if inference_type not in SUPPORTED_ROBOFLOW_MODELS:
105103
raise Exception(
@@ -181,7 +179,7 @@ def poll_for_results(self, job_id: str = None) -> dict:
181179
except Exception as e:
182180
print(e)
183181
raise Exception("Error polling for results.")
184-
182+
185183
if not response.ok:
186184
raise Exception("Error polling for results.")
187185

0 commit comments

Comments
 (0)