Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -4,10 +4,41 @@ emoji: π¬
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.29.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
+
# Swahili Hate Speech Classifier
|
14 |
+
|
15 |
+
This Space is a demo of a fine-tuned BERT model for classifying Swahili text into three categories
|
16 |
+
|
17 |
+
- **Non-hate speech**
|
18 |
+
- **Political hate speech**
|
19 |
+
- **Offensive language**
|
20 |
+
|
21 |
+
### π§ Model
|
22 |
+
The model was trained using a labeled Swahili dataset for hate speech detection. It is based on a BERT architecture and fine-tuned specifically for this 3-class classification task.
|
23 |
+
|
24 |
+
Model repo: [`sandbox338/hatespeech`](https://huggingface.co/sandbox338/hatespeech)
|
25 |
+
|
26 |
+
### π¬ How to Use
|
27 |
+
1. Enter a Swahili sentence or paragraph into the textbox.
|
28 |
+
2. Click **Submit**.
|
29 |
+
3. The model will return one of the three class labels.
|
30 |
+
|
31 |
+
### π Example Inputs
|
32 |
+
- `Hii ni ujumbe wa kawaida bila matusi.` β *Non-hate speech*
|
33 |
+
- `Wanasiasa hawa ni wabaya na lazima waondoke!` β *Political hate speech*
|
34 |
+
- `Unasema upuuzi na wewe ni mjinga kabisa!` β *Offensive language*
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
### π© Usability Testing
|
39 |
+
This tool is part of an ongoing usability evaluation. Please try it out and share feedback on:
|
40 |
+
- Clarity of results
|
41 |
+
- Ease of use
|
42 |
+
- Suggestions for improvement
|
43 |
+
|
44 |
+
---
|