Serving the model as an API

Now that we have created a model for prediction, the next thing is to serve this model via a RESTful API. To achieve this, we will use lightweight Python framework called Flask: http://flask.pocoo.org/.

Let's start by installing the Flask library in our conda environment if it does not already exist:

pip install Flask
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset