All Projects → mtobeiyf → Keras Flask Deploy Webapp

mtobeiyf / Keras Flask Deploy Webapp

Licence: gpl-3.0
😺 Pretty & simple image classifier app template. Deploy your own trained model or pre-trained model (VGG, ResNet, Densenet) to a web app using Flask in 10 minutes.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Keras Flask Deploy Webapp

Channelstream
Channelstream is a websocket communication server for web applications
Stars: ✭ 52 (-93.93%)
Mutual labels:  flask, webapp
Docker Nginx Gunicorn Flask Letsencrypt
Boilerplate code for setting up Nginx + Gunicorn + Flask + automated LetsEncrypt certificates (https) using docker-compose.
Stars: ✭ 117 (-86.33%)
Mutual labels:  flask, webapp
Flask Tutorial
A tutorial to build your first flask application
Stars: ✭ 58 (-93.22%)
Mutual labels:  flask, webapp
Botvid 19
Messenger Bot that scrapes for COVID-19 data and periodically updates subscribers via Facebook Messages. Created using Python/Flask, MYSQL, HTML, Heroku
Stars: ✭ 34 (-96.03%)
Mutual labels:  flask, webapp
pytorch-serving
[UNMAINTAINED] A starter pack for creating a lightweight responsive web app for Fast.AI PyTorch models.
Stars: ✭ 16 (-98.13%)
Mutual labels:  deployment, webapp
Wifi Of House
A simple web application which allows you to share your WiFi credentials instantly with your friends and family. Built using Python, Flask and Bootstrap.
Stars: ✭ 51 (-94.04%)
Mutual labels:  flask, webapp
Flask Todolist
exemplary flask application - small to-do list WebApp example
Stars: ✭ 85 (-90.07%)
Mutual labels:  flask, webapp
Pymap webapp
A webapp version for Raster Map Download Helper
Stars: ✭ 34 (-96.03%)
Mutual labels:  flask, webapp
Titan
Create Discord server widgets for websites of all sizes! A simple to setup process for end-users. Server members may view or send messages into an embedded Discord channel.
Stars: ✭ 221 (-74.18%)
Mutual labels:  flask, webapp
Uwsgi Nginx Flask Docker
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Stars: ✭ 2,607 (+204.56%)
Mutual labels:  flask, webapp
Cancer Donation Portal Python Flask App
Flask App for Cancer Donation Portal using basic Python, SQLite3, HTML, CSS and Javascript
Stars: ✭ 32 (-96.26%)
Mutual labels:  flask, webapp
Pytorch classification
利用pytorch实现图像分类的一个完整的代码,训练,预测,TTA,模型融合,模型部署,cnn提取特征,svm或者随机森林等进行分类,模型蒸馏,一个完整的代码
Stars: ✭ 395 (-53.86%)
Mutual labels:  flask, deployment
Shorty
🔗 A URL shortening service built using Flask and MySQL
Stars: ✭ 78 (-90.89%)
Mutual labels:  flask, webapp
Machine Learning Deployment
Launch machine learning models into production using flask, docker etc.
Stars: ✭ 177 (-79.32%)
Mutual labels:  flask, deployment
Microblog
A microblogging web application written in Python and Flask that I developed as part of my Flask Mega-Tutorial series.
Stars: ✭ 3,788 (+342.52%)
Mutual labels:  flask, webapp
Bowtie
Create a dashboard with python!
Stars: ✭ 724 (-15.42%)
Mutual labels:  flask, webapp
Ssti Payload
SSTI Payload Generator
Stars: ✭ 26 (-96.96%)
Mutual labels:  webapp
Generator Gulp Express Webapp
Yeoman generator for building a simple web app using express + gulp. This project contains proper project and build structure to be easily extensible.
Stars: ✭ 8 (-99.07%)
Mutual labels:  webapp
Intro To Apis Flask
Starter repository for the Introductions to API course
Stars: ✭ 26 (-96.96%)
Mutual labels:  flask
Lambda Deployment Example
Automated Lambda Deployments with Terraform & CodePipeline
Stars: ✭ 25 (-97.08%)
Mutual labels:  deployment

Deploy Keras Model with Flask as Web App in 10 Minutes

GPLv3 license Contributions Welcome

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

Buy Me A Coffee

Getting Started in 10 Minutes

👇 Screenshot:

New Features 🔥

  • Enhanced, mobile-friendly UI
  • Support image drag-and-drop
  • Use vanilla JavaScript, HTML and CSS. Remove jQuery and Bootstrap
  • Switch to TensorFlow 2.0 and tf.keras by default
  • Upgrade Docker base image to Python 3 (it's 2020)

If you need to use Python 2.x or TensorFlow 1.x, check out the legacy snapshot


Run with Docker

With Docker, you can quickly build and run the entire application in minutes 🐳

# 1. First, clone the repo
$ git clone https://github.com/mtobeiyf/keras-flask-deploy-webapp.git
$ cd keras-flask-deploy-webapp

# 2. Build Docker image
$ docker build -t keras_flask_app .

# 3. Run!
$ docker run -it --rm -p 5000:5000 keras_flask_app

Open http://localhost:5000 and wait till the webpage is loaded.

Local Installation

It's easy to install and run it on your computer.

# 1. First, clone the repo
$ git clone https://github.com/mtobeiyf/keras-flask-deploy-webapp.git
$ cd keras-flask-deploy-webapp

# 2. Install Python packages
$ pip install -r requirements.txt

# 3. Run!
$ python app.py

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


Customization

It's also easy to customize and include your models in this app.

Details

Use your own model

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

Check the commented code in app.py.

Use other pre-trained model

See Keras applications for more available models such as DenseNet, MobilNet, NASNet, etc.

Check this section in app.py.

UI Modification

Modify files in templates and static directory.

index.html for the UI and main.js for all the behaviors.

Deployment

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

Details

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 -b 127.0.0.1:5000 app:app

More deployment options, check here

Set up Nginx

To redirect the traffic to your local app. Configure your Nginx .conf file.

server {
  listen  80;

  client_max_body_size 20M;

  location / {
      proxy_pass http://127.0.0.1:5000;
  }
}

Future Plan

  • [ ] Support detection and segmentation models

More Resources

Building a simple Keras + deep learning REST API

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].