Spaces:
Sleeping
Sleeping
title: Bullying Classifier API | |
emoji: π‘οΈ | |
colorFrom: indigo | |
colorTo: blue | |
sdk: docker | |
app_port: 7860 | |
pinned: false | |
# Bullying Classifier API | |
This Flask application provides a RESTful API for classifying text inputs as bullying or not using a BERT-based model. | |
## Endpoints | |
- `POST /classify/text` β Classifies text as bullying or not. | |
- `POST /classify/audio` β Placeholder for audio classification. | |
- `POST /classify/image` β Placeholder for image classification. | |
## Usage | |
Send a POST request to `/classify/text` with a JSON body: | |
```json | |
{ | |
"text": "your text here" | |
} | |
``` | |
## Docker | |
Build and run the container: | |
```sh | |
docker build -t bullying-classifier . | |
docker run -p 7860:7860 bullying-classifier | |
``` | |