This message was deleted.
# ask-for-help
s
This message was deleted.
j
ah I found it, I believe. I was not specifying the data type on the
classify
function wrong:
Copy code
@svc.api(input=JSON(pydantic_model=Input), output=JSON())
def classify(input):
    df = preprocess(input)
    print(df)
    result = runner.predict.run(df).item()
    return {'status_code': 200, 'prediction': result}
correct:
Copy code
@svc.api(input=JSON(pydantic_model=Input), output=JSON())
def classify(input:Input):
    df = preprocess(input)
    print(df)
    result = runner.predict.run(df).item()
    return {'status_code': 200, 'prediction': result}
a
Ugh thats probably the root of the issue, can you send your
bentoml_configuration
here?