VoltIC's picture
Update README.md
e52093f verified
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+

πŸ“‚ Project Structure