* Bump slackapi/slack-github-action in /.github/workflows Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 2.0.0 to 2.1.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](https://github.com/slackapi/slack-github-action/compare/v2.0.0...v2.1.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-version: 2.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Auto-format by https://ultralytics.com/actions * Update README.md Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Auto-format by https://ultralytics.com/actions --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
18 lines
391 B
Python
18 lines
391 B
Python
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
"""Perform test request."""
|
|
|
|
import pprint
|
|
|
|
import requests
|
|
|
|
DETECTION_URL = "http://localhost:5000/v1/object-detection/yolov5s"
|
|
IMAGE = "zidane.jpg"
|
|
|
|
# Read image
|
|
with open(IMAGE, "rb") as f:
|
|
image_data = f.read()
|
|
|
|
response = requests.post(DETECTION_URL, files={"image": image_data}).json()
|
|
|
|
pprint.pprint(response)
|