The detection model is trained on Hate Speech and Offensive Language Dataset and fine-tuned for binary/multiclass classification (e.g., hate, offensive, neither). Hosted publicly on Hugging Face:
KhalidGB/HateBERTTry the model directly on Hugging Face π€
hate-speech-detector/ β βββ venv/ βββ model/ # Fine-tuned hugging face model β βββ config.json βββ model.safetensors βββ special_tokens_map.json βββ tokenizer_config.json βββ training_args.bin βββ vocab.txt βββ README.md βββ app.py βββ requirements.txt βββ LICENSE βββ README.md
make sure you download The HateBERT model from Hugging Face into model folder
python -m venv venv source venv/bin/activate #Mac venv\Scripts\activate #Windows pip install -r requirements.txt flask run
cd frontend npm install npm run dev
Make sure the backend is running on http://localhost:5000 and frontend on http://localhost:8080.
