Download moderator.py from Fafnir666/Sol: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/Fafnir666/Sol/resolve/main/moderator.py
- Command line
-
hf download hf://Fafnir666/Sol/moderator.py
-
curl -L -o moderator.py https://huggingface.co/Fafnir666/Sol/resolve/main/moderator.py
294 Bytes
| HATE_KEYWORDS = [ | |
| "hitler", "1488", "zionist conspiracy", "gas the", "jews did", "white genocide", | |
| "holocaust hoax", "nazi", "heil", "great replacement", "ethnostate" | |
| ] | |
| def check_for_hate(text): | |
| lowered = text.lower() | |
| return any(keyword in lowered for keyword in HATE_KEYWORDS) |