Spaces:
Sleeping
Sleeping
metadata
title: Hate Speech Detection API
emoji: π
colorFrom: red
colorTo: purple
sdk: docker
app_file: app.py
pinned: false
π Hate Speech Detection Web Application
A FastAPI-based web application that detects hate speech in text using a locally stored machine learning model (hate_speech_model.pkl).
The application provides both a browser-based interface and a REST API.
π Features
- Hate speech detection using a pre-trained local ML model
- Simple and responsive web UI
- REST API endpoint for integration
- Runs on Hugging Face Spaces, Docker, or locally
- Lightweight and fast inference
π§ Model Information
- Model file:
hate_speech_model.pkl - Type: Scikit-learn classifier / Pipeline
- Task: Hate Speech Classification
- Loaded locally using:
joblib
β οΈ The model file must be present in the root directory of the project.
π₯οΈ Tech Stack
- Backend: FastAPI
- Frontend: HTML, CSS, JavaScript
- ML Framework: Scikit-learn
- Model Loader: Joblib
- Server: Uvicorn
- Language: Python 3.9+