Skip to content

Commit

Permalink
deepstack: pass api key in request
Browse files Browse the repository at this point in the history
The POST data was prepared, but not passed into the request call.
  • Loading branch information
mweinelt committed May 23, 2023
1 parent bc3311a commit 9472fa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frigate/detectors/plugins/deepstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def detect_raw(self, tensor_input):
image_bytes = output.getvalue()
data = {"api_key": self.api_key}
response = requests.post(
self.api_url, files={"image": image_bytes}, timeout=self.api_timeout
self.api_url,
data=data,
files={"image": image_bytes},
timeout=self.api_timeout,
)
response_json = response.json()
detections = np.zeros((20, 6), np.float32)
Expand Down

0 comments on commit 9472fa6

Please sign in to comment.