xPerSki/offensive-speech-api

Offensive Speech detection

0

stars

22

commits

Python

primary language

Apr 28, 2025

updated

README

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

Contributors

xPerSki

22 commits

xPerSki/offensive-speech-api

Offensive Speech detection

0

stars

22

commits

Python

primary language

Apr 28, 2025

updated

README

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

Contributors

xPerSki

22 commits

Languages

Python

95.1%

Dockerfile

4.9%