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.
