Deploy Web App ML/DL on Heroku

Nonpavit Detbun πŸ”‹πŸΊ
1 min readJul 10, 2020

--

Flask + OpenCV + MobileNet SSD

Tech.

  • Flask
  • OpenCV
  • Heroku
  • Your Model (Machine Learning/Deep Learning)

Project

gunicorn is main modules for deploy to heroku, other modules and model up to your project. Install modules on your virtual environment

pip install flask  opencv-python numpy gunicorn
  • app.py | Object Detection API
  • index.html | POST Method to Object Detection API
  • index.js | Image Input for POST Method

Deploy

  • Procfile | commands to be executed for start server
  • Aptfile | Installing apt packages requires sudo
  • runtime.txt | python version on server
  • requirements.txt | This contains the list of modules
  • Add Buildpack

Heroku > Settings tab > Add Buildpack > https://github.com/heroku/heroku-buildpack-apt.git > Save Changes

  • Deploy

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Nonpavit Detbun πŸ”‹πŸΊ
Nonpavit Detbun πŸ”‹πŸΊ

Written by Nonpavit Detbun πŸ”‹πŸΊ

I’m Electrical Engineering. πŸ“Ÿ I have an interest in Web App, Mobile App, IoT and Microcontroller 🧐

No responses yet

Write a response