- CNN trained in Keras (tensorflow)
- API developed using the Flask framework
- WSGI using Gurnicorn
- Nginx Web Server
- Docker compose implementation
-
In the repository directory:
sudo docker-compose build
then,
sudo docker-compose up
-
Use Postman to query the API on
http://0.0.0.0/predict
uploading your image file in theform-data
field of the request with key asimage-file
-
Get the prediction in the response as:
{ filename:'sample0.png', prediction: 3 }