Skip to content

About

Offensive Speech detection

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Offensive Speech API


Usage

Building Docker Image

docker build -t offensive-speech-api .

Running the Container

docker run -p 8000:8000 offensive-speech-api

Endpoints

/ping

Health check, returns "pong"

/analyze-text/<text>

Analyzes the provided text for offensive content. Replace <text> with the text you want to analyze.

Example Response:

{
    "results": {
        "text": "Example text",
        "result": "Not Offensive",
        "confidence": "95.3"
    }
}

Running local server

uvicorn app.server-app:app --host 0.0.0.0 --port 8000
python app/server-app.py

Running Tests

Make sure that your server is running

pytest tests

About

Offensive Speech detection

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages