Skip to content

Add folder to bentoml boundle #2095

Answered by parano
zfallahnejad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zfallahnejad yes it is possible, in BentoML 0.13.*, we recommend a workaround to directly copy files to the bundle path after the save call. e.g.:

saved_path = svc.save()
# copy files or folders to {saved_path}
shutils.copy(..., saved_path)

In the upcoming 1.0 version, copying files and directory to Bento bundle will be supported out of the box.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zfallahnejad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants