
上QQ阅读APP看书,第一时间看更新
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