Skip to content

Commit

Permalink
allow inference fps value to pass through to api
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Dec 1, 2023
1 parent 7a80221 commit 7615e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roboflow/models/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def predict_video(
models.append(SUPPORTED_ADDITIONAL_MODELS[model])

payload = json.dumps(
{"input_url": signed_url, "infer_fps": 5, "models": models}
{"input_url": signed_url, "infer_fps": fps, "models": models}
)

headers = {"Content-Type": "application/json"}
Expand Down
2 changes: 1 addition & 1 deletion roboflow/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def predict(
models.append(SUPPORTED_ADDITIONAL_MODELS[model])

payload = json.dumps(
{"input_url": signed_url, "infer_fps": 5, "models": models}
{"input_url": signed_url, "infer_fps": fps, "models": models}
)

response = requests.request("POST", url, headers=headers, data=payload)
Expand Down

0 comments on commit 7615e38

Please sign in to comment.