Skip to content

HTTP API to classify the toxicity of text messages.

License

Notifications You must be signed in to change notification settings

nedix/detoxify-flask-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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