docker build -t offensive-speech-api .
docker run -p 8000:8000 offensive-speech-api
/pingHealth check, returns "pong"
/analyze-text/<text>Analyzes the provided text for offensive content.
Replace <text> with the text you want to analyze.
{
"results": {
"text": "Example text",
"result": "Not Offensive",
"confidence": "95.3"
}
}
uvicorn app.server-app:app --host 0.0.0.0 --port 8000
python app/server-app.py
Make sure that your server is running
pytest tests
22 commits
Python
95.1%
Dockerfile
4.9%
docker build -t offensive-speech-api .
docker run -p 8000:8000 offensive-speech-api
/pingHealth check, returns "pong"
/analyze-text/<text>Analyzes the provided text for offensive content.
Replace <text> with the text you want to analyze.
{
"results": {
"text": "Example text",
"result": "Not Offensive",
"confidence": "95.3"
}
}
uvicorn app.server-app:app --host 0.0.0.0 --port 8000
python app/server-app.py
Make sure that your server is running
pytest tests
22 commits
Python
95.1%
Dockerfile
4.9%