Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.23 KB

Flask app for Obama or Smalling Prediction

This is a simple Flask application for Obama or Smalling Prediction. For more detail, see the obama_smalling_predictor repo!

Prerequiste

$ conda -V
conda 4.10.3

Set up environment

Suggest using Miniconda to set up our environment.

$ conda create -n os-flask python=3.7.2
$ conda activate os-flask
$ pip install -r ./requirements.txt

Run flask app

$ cd <THIS_REPO>/src/
$ export FLASK_APP=predict.py
$ flask run

Then you can see the app runnning on your localhost:5000/predict

Demo

flask-app-demo.mp4

Related blog post and tweet

Next step

We will host this app on GCP(GAE and Cloud Storage). See this repo obama_smalling_flask_gcp