Skip to content

X-style GUI application that detects hate speech and transforms it into positive, uplifting messages that encouraging users to spread kindness, empathy, healthier online interactions instead of negativity on social media.

Notifications You must be signed in to change notification settings

styfie/SpreadLove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpreadLove Web App

SpreadLove is a Streamlit-based web application that detects hate speeches and generates kind, contextual replies. It’s designed for educational and demo purposes only.

This project is inspired by Halle Bailey’s X account and uses a fictional “love & kindness” theme to demonstrate AI moderation of toxic content.

Visit the Web: https://spreadlove.streamlit.app/


⚡ Features

  • Detect hate speeches in text input (insults, racism, etc.)
  • Generate contextual, friendly replies based on detected keywords
  • Simple chat interface with avatars and “post-style” layout similar to X GUI
  • Lightweight SVM model for toxicity detection

🚀 Demo / Web Deployment

The current deployment is a preview only, showcasing how the AI moderation works. It is not an official app from Halle Bailey.


🛠 Installation

  1. Clone the repository:
git clone https://github.com/your-username/spreadlove.git
cd spreadlove
  1. Create a virtual environment:
python -m venv venv
  1. Activate the environment:
  • Windows: venv\Scripts\activate
  • Mac/Linux: source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run locally:
streamlit run spreadlove.py

📂 Project Structure

assets/           # Avatars and CSV data
spreadlove.py     # Main Streamlit app
requirements.txt  # Python dependencies
README.md         # Project documentation

⚠️ Notes

  • This app uses a basic SVM model and keyword-based replies.
  • It is meant for demonstration and learning purposes only.

About

X-style GUI application that detects hate speech and transforms it into positive, uplifting messages that encouraging users to spread kindness, empathy, healthier online interactions instead of negativity on social media.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages