Sami Ali
Update README.md
0707327 unverified

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: Twitter Sentiment Analysis
emoji: 🌟
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 4.37.2
app_file: app.py
pinned: false

🌟 Twitter Sentiment Analysis

A simple Sentiment Analysis App built with NLTK, NumPy, and Gradio.
The model is trained on Twitter samples and classifies tweets as Positive 😊 or Negative 😑.


πŸš€ Features

  • Preprocessed Twitter dataset using NLTK
  • Naive Bayes Classifier for sentiment prediction
  • Interactive Gradio UI for testing tweets
  • Stores predictions for future analysis

πŸ“Έ Demo

App Screenshot

Try it live: Gradio Link


πŸ› οΈ Installation

Clone the repository:

git clone https://github.com/yourusername/twitter-sentiment-analysis.git
cd twitter-sentiment-analysis

Create a virtual environment and install dependencies:

pip install -r requirements.txt

Run the app:

python app.py

πŸ“‚ Project Structure

twitter-sentiment-analysis/
│── app.py              # Gradio app
│── model.py            # Sentiment prediction logic
│── requirements.txt    # Dependencies
│── README.md           # Project documentation

🀝 Contributing

Pull requests are welcome! For major changes, open an issue first to discuss what you’d like to improve.

β˜• Support Me

If you like this project, consider buying me a coffee β˜•β€οΈ

πŸ‘¨β€πŸ’» Author

Sami Ali