rstudio / vetiver-python

Version, share, deploy, and monitor models.
https://rstudio.github.io/vetiver-python/stable/
MIT License
60 stars 17 forks source link

ENH: Refactor server handling #155

Closed isabelizimm closed 1 year ago

isabelizimm commented 1 year ago

Added in this PR

previous error message:

422 Unprocessable Entity 
TypeError: Predict expects DataFrame, Series, or dict.

new error message:

1 validation error for Request: body -> 0 -> disp:   value is not a valid float (type=type_error.float)

where 0 is the index of the error and disp is the feature with the error

Related Issues

Notes

This PR must be merged before #143 since spacy's input data of one column of strings cannot be handled in the same way as tabular data, and the output might be multiple columns. This PR gives the flexibility of input/output handling to each modeling framework's handler.