Skip to content

nishipy/obama_smalling_flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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