Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 784 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 784 Bytes

A container that serves an HTTP API that can be used to classify the toxicity of a text message.

Usage

Start the container

Run the following command to start the server on port 1234.

docker run --pull always --rm --name detoxify-flask \
    -p 1234:80 \
    ghcr.io/nedix/detoxify-flask-docker

Send commands

Dispatch an HTTP request to classify the toxicity of a given text message.

curl '127.0.0.1:1234?text=foobar'

Attribution