Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 515 Bytes

HYPEME.md

File metadata and controls

18 lines (13 loc) · 515 Bytes

How to use

This simply adds a small python web service inside a docker image.

The service accepts post requests uploading images and then runs the open_nsfw classifier on them. It responds with the classification result (i.e. 0.56).

While the service can be run in parallel, no effort is made to avoid file name clashes. This is left as the responsibility of the caller.

Build the docker image like this:

docker build -t my_image .

then run it like this:

docker run -p 4000:80 my_image