Skip to content

BentoML-0.2.2 Beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@parano parano released this 10 Jul 23:00
class MyClassifier(BentoService):

    @api(DataframeHandler, input_types=['int8', 'int8', 'float', 'str', 'bool'])
    def predict(self, df):
        ...

    # or specifying both column name & type:
    @api(DataframeHandler, input_types={'id': 'string', 'age': 'int' })
    def predict(self, df):
        ...
  • API server index page now provides web UI for testing API endpoints and shows instructions for how to generate Client API library:

image

image