Open BeomseoChoi opened 11 months ago
inference api should send json contents.
return [json.dumps(response)]
I use above code on postprocess() method. and I call inference api /predictions/{model}/{version}. the content type of result is text, even I did change dict(response) to json.
/predictions/{model}/{version}
No response
Thanks.
@BeomseoChoi to customize the handler did you extend BaseHandler?
@BeomseoChoi by the way, type return must be a list because the web services necessities a list to send the response
🚀 The feature
inference api should send json contents.
Motivation, pitch
return [json.dumps(response)]
I use above code on postprocess() method. and I call inference api
/predictions/{model}/{version}
. the content type of result is text, even I did change dict(response) to json.Alternatives
No response
Additional context
Thanks.