项目作者: Otman404

项目描述 :
Deploying a Keras CNN model with Flask and Docker
高级语言: JavaScript
项目地址: git://github.com/Otman404/deployed_math_symbols_classification_flask.git
创建时间: 2019-03-27T01:25:02Z
项目社区:https://github.com/Otman404/deployed_math_symbols_classification_flask

开源协议:GNU General Public License v3.0

下载


Getting Started

This repository containts the deployed version of This model using Flask. It can detect and classify math symbols aswell as greek letters and alphabets …

Basic Usage

Draw a symbol on the drawing zone and click ‘Predict’ to get the result, you can also perform basic math operations like addition , subtraction … by Drawing for example : ‘2’ then ‘+’ then ‘1’ , and when you draw ‘=’ you automatically get the result.

How does it work

Interface

Operations


Running Locally

  1. $ git clone https://github.com/Otman404/deployed_math_symbols_classification_flask
  2. $ cd app
  3. $ pip install -r requirements.txt
  4. $ export FLASK_APP=app.py
  5. $ flask run --host=0.0.0.0

Your app should now be running on localhost:5000.

Docker Installation

Build and run an image for keras-application pretrained model

  1. $ cd app
  2. $ docker build -t keras_flask_app .
  3. $ docker run -d -p 5000:5000 keras_flask_app