In this article, we are going to discuss majorly machine learning model deployment using flask API but the code for model building and deployment using flask API will be available in my GitHub repository so that you can also try this in your own project.
在本文中,我们将主要讨论使用flask API进行机器学习模型的部署,但是使用flask API进行模型构建和部署的代码将在我的GitHub中提供。 存储库,以便您也可以在自己的项目中尝试此操作。
I assume that you have some experience in machine learning or deep learning model building and wish to productionize model with flask API.
我假设您在机器学习或深度学习模型构建方面有一定经验,并希望使用Flask API 生产模型 。
Flask API简介 (Introduction to Flask API)
Flask is a lightweight Web Server Gateway Interface(WSGI) a micro-framework written in python. This means flask provides us with tools, libraries and technologies that allow us to build a web application. This web application can be some web pages, a blog, or our machine learning model prediction web application. Flask is an intermediate medium to connect our model with front end web page for prediction as shown in below image.
Flask是一个轻量级的Web服务器网关接口(WSGI),它是用python编写的微框架。 这意味着flask为我们提供了工具,库和技术,使我们能够构建Web应用程序。 该Web应用程序可以是某些网页,博客或我们的机器学习模型预测Web应用程序。 Flask是将我们的模型与前端网页连接以进行预测的中间媒介, 如下图所示。
![flask Api machine learning model](https://img-service.csdnimg.cn/img_convert/90d5c2670b4843fe117cbc49dccc6345.png)
先决条件 (Prerequisites)
We assume that all of us have knowledge about model training in jupyter notebook. This post is aimed to only provide insights on deploying a machine learning model into production using Flask API.