A newer version of the Gradio SDK is available: 6.14.0
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
GradioTransformers+TensorFlowJoblibfor Naive Bayes modelGoogle Sheetsfor 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