Skip to content

Commit

Permalink
respond to feedback, run black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Nov 3, 2023
1 parent 27cbecc commit 5dd4ee9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions roboflow/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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.")

Expand Down

0 comments on commit 5dd4ee9

Please sign in to comment.