Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 801 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 801 Bytes

HTTP API to classify the toxicity of text messages.

Usage

1. Start the service

The following command starts the service on port 8080.

docker run --pull always --rm --name detoxify \
    -p 8080:80 \
    nedix/detoxify

2. Request toxicity information

The following command sends a HTTP request that classifies the toxicity of a text message.

curl '127.0.0.1:8080?text=foobar'

Attribution