Skip to content

Commit

Permalink
minor fix for io descriptor example
Browse files Browse the repository at this point in the history
  • Loading branch information
larme committed Apr 29, 2024
1 parent 528d78c commit a8771b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions examples/io-descriptors/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
diffusers
bentoml
transformers
torch
accelerate
pydub
pdf2img
pandas
4 changes: 2 additions & 2 deletions examples/io-descriptors/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def append_string_to_eof(
txt_file: t.Annotated[Path, bentoml.validators.ContentType("text/plain")],
input_string: str,
) -> t.Annotated[Path, bentoml.validators.ContentType("text/plain")]:
with open(output_path, "a") as file:
with open(txt_file, "a") as file:
file.write(input_string)
return output_path
return txt_file


@bentoml.service()
Expand Down

0 comments on commit a8771b1

Please sign in to comment.