Skip to content

A container that serves an HTTP API that can be used to classify the toxicity of a text message.

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

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A container that serves an HTTP API that can be used to classify the toxicity of a text message.

Usage

Start the container

Run the following command to start the server on port 1234.

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

Send commands

Dispatch an HTTP request to classify the toxicity of a given text message.

curl '127.0.0.1:1234?text=foobar'

Attribution

About

A container that serves an HTTP API that can be used to classify the toxicity of a text message.

Topics

Resources

License

Stars

Watchers

Forks

Packages