Sign inSign up

nedix/detoxify

By nedix

•Updated about 6 hours ago

HTTP API to classify the toxicity of text messages.

Image
1

5.2K

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:1c2ff02b9…

Size

1.7 GB

Last updated

about 6 hours ago

docker pull nedix/detoxify