Reformat Markdown code blocks (#12795)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
2af71d15a6
commit
fceea033ad
128 changed files with 1067 additions and 1018 deletions
|
|
@ -135,14 +135,16 @@ deepsparse.server \
|
|||
An example request, using Python's `requests` package:
|
||||
|
||||
```python
|
||||
import requests, json
|
||||
import json
|
||||
|
||||
import requests
|
||||
|
||||
# list of images for inference (local files on client side)
|
||||
path = ['basilica.jpg']
|
||||
files = [('request', open(img, 'rb')) for img in path]
|
||||
path = ["basilica.jpg"]
|
||||
files = [("request", open(img, "rb")) for img in path]
|
||||
|
||||
# send request over HTTP to /predict/from_files endpoint
|
||||
url = 'http://0.0.0.0:5543/predict/from_files'
|
||||
url = "http://0.0.0.0:5543/predict/from_files"
|
||||
resp = requests.post(url=url, files=files)
|
||||
|
||||
# response is returned in JSON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue