Heroku Deployment

I tried to deployed 2-3 projects of my own (Dog breed prediction , air quality prediction and language detection using NLP) on heroku but none of them got successfully deployed . It always shows Application Error , despite app size being around 140.3M to 145M . I was able to deploy only the marks predictor ML Project taught in the course.

Here’s the link to one of these projects

Could you please tell where I am going wrong ?

Can you please share the screenshot of that error.

In the Activity Feed > Build Logs :

-----> Building on the Heroku-20 stack

-----> Using buildpack: heroku/python

-----> Python app detected

-----> No Python version was specified. Using the same version as the last build: python-3.9.5

   To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes

-----> Requirements file has been changed, clearing cached dependencies

-----> Installing python-3.9.5

-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2

-----> Installing SQLite3

-----> Installing requirements with pip

   Collecting numpy

     Downloading numpy-1.21.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)

   Collecting pandas

     Downloading pandas-1.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (9.7 MB)

   Collecting scikit-learn

     Downloading scikit_learn-0.24.2-cp39-cp39-manylinux2010_x86_64.whl (23.8 MB)

   Collecting Click==7.0

     Downloading Click-7.0-py2.py3-none-any.whl (81 kB)

   Collecting Flask==1.1.1

     Downloading Flask-1.1.1-py2.py3-none-any.whl (94 kB)

   Collecting gunicorn==19.9.0

     Downloading gunicorn-19.9.0-py2.py3-none-any.whl (112 kB)

   Collecting itsdangerous==1.1.0

     Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)

   Collecting Jinja2==2.10.1

     Downloading Jinja2-2.10.1-py2.py3-none-any.whl (124 kB)

   Collecting MarkupSafe==1.1.1

     Downloading MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl (32 kB)

   Collecting Werkzeug==0.15.6

     Downloading Werkzeug-0.15.6-py2.py3-none-any.whl (328 kB)

   Collecting pytz>=2017.3

     Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)

   Collecting python-dateutil>=2.7.3

     Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)

   Collecting threadpoolctl>=2.0.0

     Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)

   Collecting scipy>=0.19.1

     Downloading scipy-1.7.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.4 MB)

   Collecting joblib>=0.11

     Downloading joblib-1.0.1-py3-none-any.whl (303 kB)

   Collecting six>=1.5

     Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)

   Installing collected packages: numpy, pytz, six, python-dateutil, pandas, threadpoolctl, scipy, joblib, scikit-learn, Click, Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask, gunicorn

   Successfully installed Click-7.0 Flask-1.1.1 Jinja2-2.10.1 MarkupSafe-1.1.1 Werkzeug-0.15.6 gunicorn-19.9.0 itsdangerous-1.1.0 joblib-1.0.1 numpy-1.21.0 pandas-1.2.5 python-dateutil-2.8.1 pytz-2021.1 scikit-learn-0.24.2 scipy-1.7.0 six-1.16.0 threadpoolctl-2.1.0

-----> Discovering process types

   Procfile declares types -> web

-----> Compressing…

   Done: 140.3M

-----> Launching…

   Released v7

   https://language-predictor.herokuapp.com/ deployed to Heroku

check heroku error logs

run this
heroku logs --tail

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.