Skip to content

Commit

Permalink
doc: Update the docs about multipart output (#4818)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Jun 20, 2024
1 parent fc5c514 commit 6d44055
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/guides/iotypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,16 @@ BentoML also supports lists input and output of complex types, such as images an
@bentoml.service
class BatchImageService:
@bentoml.api
def enhance_images(self, images: List[PILImage]) -> List[PILImage]:
# Process images and return a list of images
def enhance_images(self, images: List[PILImage]) -> PILImage:
# Process images and return a single image
...
@bentoml.api
def process_files(self, files: List[Path]) -> List[Dict]:
# Process files and return a list of dictionaries
...
Note that currently BentoML does not support output that combines raw binary data (like images or files) with plain dictionary data directly.
Note that currently BentoML does not support output that contains multiple raw binary data or combines raw binary data (like images or files) with plain dictionary data directly.
Validate data
-------------
Expand Down

0 comments on commit 6d44055

Please sign in to comment.