File size: 734 Bytes
781a663
4991c1b
 
 
 
781a663
4991c1b
781a663
 
 
4991c1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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
```