Skip to content

Commit

Permalink
Ultralytics Asset URL Update (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jul 10, 2024
1 parent a864571 commit 34500c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
url = f"https://api.ultralytics.com/v1/predict/{model_id}"
headers = {"x-api-key": api_key}
data = {"size": 320, "confidence": 0.25, "iou": 0.45}
f = BytesIO(requests.get("https://github.com/ultralytics/yolov5/releases/download/v1.0/zidane.jpg").content)
f = BytesIO(requests.get("https://github.com/ultralytics/assets/releases/download/v0.0.0/zidane.jpg").content)
response = requests.post(url, headers=headers, data=data, files={"image": f})
response.raise_for_status() # ensure we got a successful response
print(json.dumps(response.json(), indent=2))
Expand Down

0 comments on commit 34500c2

Please sign in to comment.