A simple Flask web app to serve a MNIST classifier prediction hosted on Google Cloud Function
- Check out https://ngohgia.github.io/mnist-web for setting up the model and required Google Cloud services.
- Change the hardcoded variables
app.secret_key
andapp.config["QUERY_URL"]
inapp.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. - Make sure you have Python 3 installed, then create and activate a new virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install the necessary packages with
pip install -r requirements.txt
flask run