Skip to content

s-gbz/keras-flask-deploy-webapp

 
 

Repository files navigation

Deploy Keras models to production level easily

GPLv3 license

Make use of Flask & Gevent to deploy your DL models with ease. Checkout my blogpost for further details on the topic! 📝📰💡

Getting started in 10 minutes

👇Screenshot:

Code demo


Local Installation

Clone the repo

$ git clone https://github.com/s-gbz/keras-flask-deploy-webapp.git

Install requirements

$ pip install -r requirements.txt

Make sure you have the following installed:

  • tensorflow
  • keras
  • flask
  • pillow
  • h5py
  • gevent

Run with Python

Python 2.7 or 3.5+ are supported and tested.

$ python app.py

Play

Open http://localhost:5000 and have fun. 😃

More resources

Check Siraj's "How to Deploy a Keras Model to Production" video. The corresponding repo.

Building a simple Keras + deep learning REST API

Languages

  • Python 38.2%
  • HTML 28.0%
  • JavaScript 18.6%
  • CSS 11.5%
  • Dockerfile 3.7%