Skip to content

README curl is wrong image should be images #3

@felipeblassioli

Description

@felipeblassioli

This part of README seems wrong because https://github.com/bentoml/BentoYolo/blob/main/service.py#L26-L29 uses batchable=True

Image

Part of README.md:

CURL

curl -X 'POST' \
  'http://localhost:3000/predict' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'image=@demo-image.jpg;type=image/jpeg'
Python client

import bentoml
from pathlib import Path

with bentoml.SyncHTTPClient("http://localhost:3000") as client:
    result = client.predict(
        image=Path("demo-image.jpg"),
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions