Keras REST API with Flask RESTPlus, Swagger, Gunicorn and Docker
This project is a simple boilerplate for deploying Keras models with Flask RESTPlus, Swagger, Gunicorn and Docker.
$ git clone repository-url
docker
folder and run.
$ cd docker
$ docker-compose up
This will expose on http://127.0.0.1:5000 the Swagger API docs and that’s all!
When the project is fully deployed, you will get a single endpoint. This endpoint will allow to predict house
prices by using a simple Keras Boston house pricing regression model loaded from a HDF5 file.
This endpoint will predict a house price by using the following input data.
You must provide all these parameters as float numbers:
The endpoint will return the predicted value as a median value of owner-occupied homes in one thousand dollars.
The response with default input data:
{
"medv": 453.8800964355469,
"description": "Median value of owner-occupied homes in $1000's.",
}
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details