Real sentiment analysis using a local transformer model (DistilBERT). No data leaves your computer. Includes a live monitoring dashboard with API call tracking, response times, and searchable history.
- Python
- Internet for the first run (downloads the model ~300 MB)
- Clone or download the project files.
- Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install flask transformers torch psutil
- Run the app:
python app.py
- Open your browser at http://127.0.0.1:5000
.
├── app.py # Flask backend with /api/analyze, /api/analyses, /status
├── templates/
│ ├── index.html # Main playground + dashboard
│ └── history.html # Searchable history page
├── sentiment.db # SQLite database (auto‑created)
└── README.md