Skip to content

HTTP API for classifying toxicity of a given text.

License

Notifications You must be signed in to change notification settings

nedix/detoxify-flask-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP API for classifying toxicity of a given text.

Setup

Start the HTTP server

This example command will start the server on port 80.

docker run --rm --name detoxify-flask \
    -p 80:80 \
    ghcr.io/nedix/detoxify-flask-docker

Usage

Classify toxicity of a text message

curl '127.0.0.1:1234?text=foobar'

Attribution

Powered by Detoxify and Flask.