Slackbot
10/19/2022, 8:29 PMsauyon
10/19/2022, 8:29 PMpython service.py
?Sean
10/19/2022, 10:53 PMyadwinder kaur
10/20/2022, 5:43 AMyadwinder kaur
10/20/2022, 5:44 AMsauyon
10/20/2022, 8:06 AMservice.py:svc
and not service:svc
, I think!yadwinder kaur
10/20/2022, 4:52 PMserve
failed: Failed to load bento or import service 'service.py:svc'. If you are attempting to import bento in local store: Attribute "svc" not found in module "service".
, or if you are importing by python module path: Bento 'service.py:svc' is not found in BentoML store <osfs 'C:\Users\yadwi\bentoml\bentos'>
yadwinder kaur
10/20/2022, 4:55 PMsauyon
10/20/2022, 4:58 PMbentoml serve .
, then.
For the second error, it seems like your model hasn't saved the custom object properly, can you print(model_ref.custom_objects)
?yadwinder kaur
10/20/2022, 5:05 PMsauyon
10/20/2022, 5:07 PMdictVectorizer
, not in the prompt.
You can just run the service again after to see the output.yadwinder kaur
10/20/2022, 7:55 PMsauyon
10/20/2022, 7:56 PMsauyon
10/20/2022, 7:56 PMdictVectorizer
in your training code.yadwinder kaur
10/20/2022, 8:05 PMsauyon
10/20/2022, 8:05 PMyadwinder kaur
10/20/2022, 8:06 PM