Skip to content

asantos2000/keras-complete-rest-api

Repository files navigation

Deep learning in production with Keras, Redis, Flask, and Apache

Ref: https://www.pyimagesearch.com/2018/02/05/deep-learning-production-keras-redis-flask-apache/

Download the code

https://www.getdrip.com/forms/15005528/submissions

Running

docker-compose up

docker exec -it workspace

# Already running inside container. See docker-compose workspace.command
python run_model_server.py

Testing

curl -X POST -F [email protected] 'http://localhost/predict'

# Run OK with NUM_REQUESTS = 100 in macOS High Sierra MacBook Pro (13-inch, Early 2011) / Mem 16 GB
python stress_test.py

Without docker-compose (not recommended)

docker build -f Dockerfile-full -t adsantos/keras-complete-rest-api:0.0.1 .
docker run -it -p 80:80 -p 5000:5000 adsantos/keras-complete-rest-api:0.0.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published