Find file History
davinellulinvega Remove whitespace
Really failed for a whitespace? Well thanks lint.
Latest commit ce7d9a5 Dec 19, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config add demo files Oct 20, 2018
imagetagger Remove whitespace Dec 19, 2018
requirements add demo files Oct 20, 2018
tests add demo files Oct 20, 2018
Makefile add demo files Oct 20, 2018
README.rst add demo files Oct 20, 2018
setup.py add demo files Oct 20, 2018

README.rst

Imagetagger Keras Demo

Simple application how to use aiohttp for deep learning project with keras.

Imagetagger is API for image recognition, employs mobilenet network to classify images, but other supported network can be used.

Install the app:

$ git clone https://github.com/aio-libs/aiohttp-keras-demo.git
$ cd aiohttp-keras-demo
$ pip install -r requirements/development.txt

Run application:

$ make run

Example of request:

curl -F file=@tests/data/aircraft.jpg http://localhost:8000/predict

Example of response:

{"predictions": [
    {"label": "envelope", "probability": 0.3094555735588074},
    {"label": "airship", "probability": 0.20662210881710052},
    {"label": "carton", "probability": 0.07820204645395279},
    {"label": "freight_car", "probability": 0.056770652532577515},
    {"label": "airliner", "probability": 0.04821280017495155}],
"success": true}

Requirements