Objective Goal
Idenity Handwritten Digits with Convolutional Neural Network using Flask and deploy the app on Heroku.
The Model uses Convolutional layers for predicting class labels of the image passed.
The required dependencies are mentioned in requirement.txt, conda-requirements.txt and runetime.txt.
-
Fork this repo
Click on the button to make a copy of this repo in your own account.
-
Clone your repo
git clone https://github.com/<your-name>/digit-identify.git
-
Log into your Heroku account with CLI.
-
Push your changes in GitHub
$ git add .
$ git commit -m "Add your commit name"
$ git push origin master
- Refresh your Browser and see your updated site
- Setup The App
- Create a free Heroku Account(Online)
- Python version >= 2.7 installed locally
- For Linux:
$ heroku login
Enter your Heroku credentials.
Email: python@example.com
Password:
- For Windows:
- Download Heroku CLI
- Once Installed use heroku command on your command shell (cmd)
- Prepare the app
$ git clone https://github.com/heroku/python-getting-started.git
$ cd python-getting-started
- Deploy the app
$ heroku create
Creating lit-bastion-5032 in organization heroku... done, stack is cedar-14
http://lit-bastion-5032.herokuapp.com/ | https://git.heroku.com/lit-bastion-5032.git
Git remote heroku added
$git push heroku master
Counting objects: 232, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (217/217), done.
Writing objects: 100% (232/232), 29.64 KiB | 0 bytes/s, done.
Total 232 (delta 118), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.0
remote: -----> Installing requirements with latest pipenv...
remote: Installing dependencies from Pipfile.lock...
remote: $ python manage.py collectstatic --noinput
remote: 58 static files copied to '/app/gettingstarted/staticfiles', 58 post-processed.
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 39.3M
remote: -----> Launching...
remote: Released v4
remote: http://lit-bastion-5032.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To git@heroku.com:lit-bastion-5032.git
* [new branch] master -> master