Skip to content

A simple web interface to serve a digit classifier trained with MNIST

Notifications You must be signed in to change notification settings

ngohgia/mnist-webpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web interface for a MNIST classifier

demo

A simple Flask web app to serve a MNIST classifier prediction hosted on Google Cloud Function

  1. Check out https://ngohgia.github.io/mnist-web for setting up the model and required Google Cloud services.
  2. Change the hardcoded variables app.secret_key and app.config["QUERY_URL"] in app.py. The secret key can be set to any random string to sign the session cookies. The query URL is the Google Cloud function HTTP endpoint set up in step 1.
  3. Make sure you have Python 3 installed, then create and activate a new virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install the necessary packages with pip install -r requirements.txt
  2. flask run

About

A simple web interface to serve a digit classifier trained with MNIST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published