Sign inSign up

nedix/detoxify

By nedix

Updated 21 days ago

HTTP API to classify the toxicity of text messages.

Image
1

4.6K

nedix/detoxify repository overview

detoxify-flask-container

HTTP API to classify the toxicity of text messages.

Usage

1. Start the container

The following command will start the container using port 80 for the API.

docker run \
    --name detoxify \
    --pull always \
    --restart unless-stopped \
    -p 127.0.0.1:80:80 \
    nedix/detoxify
2. Classify toxicity

This command sends a HTTP request to classify the toxicity of a message.

curl '127.0.0.1:80?text=foobar'

Tag summary

Content type

Image

Digest

sha256:00d99a31b

Size

1.7 GB

Last updated

21 days ago

docker pull nedix/detoxify