HTTP API to classify the toxicity of text messages.
The following command will start the container on port 80
.
docker run --rm --pull always --name detoxify \
-p 127.0.0.1:80:80 \
nedix/detoxify
This command sends a HTTP request to classify the toxicity of a message.
curl '127.0.0.1:80?text=foobar'