Yousif22's picture
Upload folder using huggingface_hub
fe63ba2 verified

A newer version of the Gradio SDK is available: 6.14.0

Upgrade
metadata
title: financial-sentiment-analyzer
app_file: app.py
sdk: gradio
sdk_version: 5.31.0

🧠 Financial News Sentiment Analyzer

This is a modern AI-powered application that analyzes the sentiment of financial news headlines or articles using either:

  • βœ… Naive Bayes (fast & lightweight)
  • πŸ€– BERT transformer model (powerful & context-aware)

Built with Gradio, Hugging Face Transformers, and deployable on Hugging Face Spaces.


πŸš€ Features

  • πŸ” Text sentiment classification (positive / neutral / negative)
  • πŸ“ˆ Live usage statistics (locally or via Google Sheets)
  • πŸ§ͺ Preloaded examples
  • πŸŒ™ Responsive UI with light/dark mode support

🧰 Tech Stack

  • Gradio
  • Transformers + TensorFlow
  • Joblib for Naive Bayes model
  • Google Sheets for logging (via Apps Script endpoint)

πŸ›  How to Run Locally

git clone https://github.com/yourusername/financial-sentiment-analyzer.git
cd financial-sentiment-analyzer
pip install -r requirements.txt
python app.py