This message was deleted.
# ask-for-help
s
This message was deleted.
g
I saw someone had this:
But I just get this "{ }". Someone else mentioned from_sample but looking at the documentation it's still not clear to me how to implement it. I am using JSON for input/output. This is the documentation I found: https://docs.bentoml.org/en/latest/reference/api_io_descriptors.html
a
You have to provide a
from_sample
for your JSON IO descriptor
Copy code
@svc.api(input=JSON.from_sample({"asdf": ...}), output=...)
def predict(input):
    ...
gratitude thank you 1