This is my first time using Heroku. I have builded a deep learning flask web app. It is running fine on local machine but when i try to open the app it shows "Application error". I have changed the requirements.txt and procfile to see the effect as it was suggested on other community pages but it was not working.
my file structure:
ImageClassifier_DeepLearning
|
+ static
| |
| + style.css
|
+ templates
| |
| + index.html
| + index2.html
| + show.html
| + upload.html
|
+ uploads
| |
| +.jpg,.jpeg ....
|
+ Procfile
|
+ requirements.txt
|
+ app.py
|
+ model2.h5
Procfile
web: gunicorn --bind 0.0.0.0:22471 app:app
Here, i am attaching my log file. Thanks a ton if anyone can help!
You need to change main-api:app
to app:app
in Procfile
file.
web: gunicorn --bind 0.0.0.0:22471 app:app
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.