Deploy Machine Learning Model using Flask to Heroku — Beginners(Part 2)

This is the second part of the tutorial on how to create and deploy a machine learning model on Heroku using Flask. The first part was about data pre-processing and creation of a logistic regression model using JupyterNotebook.

Part 2 will be a guide on how to structure your flask application and embed your machine learning model in it, as well as uploading the application on GitHub.

Structuring the Flask Application

I am using PyCharm as my IDE. Make sure you have installed the packages we used in our model, as well as flask, numpy and Gunicorn. Gunicorn will allow us to serve and run our flask application on Heroku.

  • Flask
  • Pandas
  • Numpy
  • Scikit-learn
  • Gunicorn
  • Pickle

Find the rest of the article here second part .