Skip to content

nursnaaz/DataScience-Webinar-Inceptez-28-06-2020

Repository files navigation

Covid Prediction using Xray Image

A pretty and customizable web app to deploy your DL model with ease


Getting started in 10 minutes

👇Screenshot:


Local Installation

Clone the repo

$ git clone https://github.com/nursnaaz/DataScience-Webinar-Inceptez-28-06-2020.git

Install requirements

$ pip install -r requirements.txt

Make sure you have the following installed:

  • Flask
  • h5py
  • Keras
  • Keras-Applications
  • Keras-Preprocessing
  • numpy
  • scikit-learn
  • scipy
  • tensorflow
  • opencv-python

Run with Python

Python 3.7+ are supported and tested.

$ python app.py

Play

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


Customization

Use your own model

Place your trained .h5 file saved by model.save() under models directory.

Deployment

To deploy it for public use, you need to have a public linux server - Ubuntu.

Run the app

Run the script and hide it in background with tmux or screen.

$ python app.py

You can also use gunicorn instead of gevent

$ gunicorn --workers=50 --threads=20 --bind 0.0.0.0:8000 app:app

More deployment options, check here

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

DataScience-Webinar-Inceptez-28-06-2020

About

Webinar content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published