bojanv / monkey-business

A monkey classifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monkey Business customvision.ai Classifier

How to build:

docker build -t <your image name> .

How to run locally:

docker run -p 127.0.0.1:80:80 -d <your image name>

Then use your favorite tool to connect to the end points.

POST as multipart/form-data using the imageData key —

curl -X POST http://127.0.0.1/image -F imageData=@some_file_name.jpg

POST as application/octet-stream —

curl -X POST http://127.0.0.1/image -H "Content-Type: application/octet-stream" --data-binary @some_file_name.jpg

POST http://127.0.0.1/url with image URL as body —

curl -X POST http://127.0.0.1/url -d '{ "url": "<test url here>" }'

About

A monkey classifier


Languages

Language:Python 97.7%Language:Dockerfile 2.3%