Deploy Machine Learning Model with backend(flask) and frontend(Angular) -Part2

Last time, we worked with jupyter notebook and build our machine learning model.
Today, we will make a backend and will use this ML model into our backend.

We will use flask for creating our backend.
Create a python file named ‘’ which will contain a method for sending the prediction using the ML model.

First create a virtual environment
virtualenv myenv
Actiavate virtual environment (for windows)
Install all required libraries from requirement.txt
pip install requirements.txt 


Run the file

We are all set.
Check the localhost

We also deployed the backend at Heroku.
If you want the full code and structure which was deployed to the server then check our git only for backend from here.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s