This repository shows the deployment of a Tensorflow 2 image classifier model based on the Rock, Paper, Scissors notebook demonstrated by Laurence Moroney (Please see references)
To generate the model, the Notebook is run in Google Colab with slight modifications (install tf2 beta package dependencies)
Model is then downloaded from Google Colab
$ git clone https://github.com/yoke2/rps_tf2_flask_app.git
Note: Python 3.x and pip is required to be installed
$ pip install -r requirements.txt
Make sure you have the following installed:
- tensorflow==2.0.0-beta1
- flask
- pillow
- h5py
- gevent
- Run Notebook in Google Colab
- Download
rps.h5
model and put in models folder (already provided)
Python 3.7+ is tested.
- Execute below line in command line
$ python app.py
- Open http://localhost:5000 in your browser to run the application