Skip to content

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 container

The following command will start the container on port 80.

docker run --rm --pull always --name detoxify \
    -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'

About

HTTP API to classify the toxicity of text messages.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •