sandbox338 commited on
Commit
fad5d56
Β·
verified Β·
1 Parent(s): 5d2e259

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -2
README.md CHANGED
@@ -4,10 +4,41 @@ emoji: πŸ’¬
4
  colorFrom: yellow
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 5.0.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
12
 
13
- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ---