File size: 1,225 Bytes
5850614
 
 
 
 
 
 
 
 
 
 
68635d7
 
 
 
 
 
 
 
5850614
 
 
 
 
 
68635d7
6557ad0
68635d7
 
 
5850614
68635d7
 
 
 
5850614
68635d7
6557ad0
 
5850614
68635d7
 
 
 
 
 
 
 
5850614
68635d7
5850614
68635d7
 
 
 
 
 
 
5850614
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: NeuroShield PoC
emoji: 🛡️
colorFrom: blue
colorTo: indigo
sdk: streamlit
sdk_version: "1.32.0"
app_file: app.py
pinned: true
---

# 🛡️ NeuroShield PoC (Enhanced Edition)

A powerful AI-based moderation assistant built with Streamlit, Hugging Face Transformers, and Groq API. Designed for nuanced, voice-guided responses to online toxicity.

---

## 🚀 Features

- ✅ 14-label toxicity classification (simulated Jigsaw + extended logic)
- 🧠 Coaching voice personas (compassionate, assertive, reflective, etc.)
- 🔥 Visual indicators (emoji SAFE/UNSAFE + toxicity heatmap)
- 🎚️ Tolerance control for each category
- 🧒 Kids Mode and NSFW Filter
- ✍️ Groq LLM Rewrites using selected tone/strategy

---

## 🧠 Coaching Voice Selector

Choose from:
- The Boundary Setter
- The Mirror
- The Compassionate Reframer
- The Challenger
→ Fully extensible via `coaching_voices.json`

---

## 🛠️ Setup

```bash
pip install -r requirements.txt
streamlit run app.py
```

---

## 🧪 Secrets Configuration (Hugging Face Spaces)

Add the following to your repository secrets:

```
GROQ_API_KEY=your-groq-api-key
```

---

MIT License © 2025 – Built for ethical AI and safe communication.