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