Sign inSign up

nedix/detoxify

By nedix

•Updated 6 days ago

HTTP API to classify the toxicity of text messages.

Image
1

6.1K

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:ff407c02a…

Size

1.7 GB

Last updated

6 days ago

docker pull nedix/detoxify