Skip to content

bisohns/imageQ-Prediction-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageQ API

Flask API for predicting classes made originally for ImageQ

Python flask

Docker Automated Build Docker Pulls

Build StatusLicense: MIT

Getting Started

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

Installation

  • Install the requirements
    # install pipenv
    sudo pip3 install pipenv

    # install requirements
    pipenv install

Running Locally

  • 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

Deploy

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

Documentation including example use are available on hosted version

Todo

See TODO

About

Prediction API powering the imageQ search engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published