Flask API for predicting classes made originally for ImageQ
Clone the repo
# SSH
git clone [email protected]:bisoncorps/imageQ_API.git
# HTTPS
git clone https://github.com/bisoncorps/imageQ_API.git
Activate virtual environment. All project work should be done in virtualenvs and virtualenv names must be added to gitignore
- Install the requirements
# install pipenv
sudo pip3 install pipenv
# install requirements
pipenv install
- With flask dev server
python flask_api/run_keras_server.py
- With Gunicorn (port 8008)
gunicorn -b :8008 flask_api:app
- With deployed Docker image from docker hub
docker run deven96/imageqapi
Upon running image, docker container port is bound to localhost
The /predict
endpoint on master
branch of the repo is linked to automatically deploy to be hosted on Google Cloud and as a docker container deven96/imageqapi
Documentation including example use are available on hosted version
See TODO