hanifekaptan/ai-agent-for-aspect-based-sentiment-analysis
0
AI Agent for Aspect Based Sentiment Anaysis
๐ฏ Aspect-Based Sentiment Analysis using natural language
This Space runs a full-stack application with:
- ๐ FastAPI Backend - Aspect-based analysis powered by Google Gemini
- ๐จ Streamlit Frontend - Interactive analysis and visualization dashboard
How to Use
Simply provide text input to get detailed sentiment insights:
- "The screen is great but the battery drains quickly."
- "I love the camera, but the price is too high."
- Upload a CSV file with thousands of customer reviews for batch analysis.
The agent understands context and identifies sentiment for each specific aspect!
Technology Stack
- Backend: FastAPI
- Frontend: Streamlit
- ML Model: Google Gemini (
gemini-1.5-flash-latest) - ML Framework: LangChain
- Data Processing: Pandas
Links
- ๐ Live Demo on HuggingFace
- ๐ป GitHub Repository
- ๐ Report Issues
Architecture
Streamlit Frontend (Port 7860)
โ
FastAPI Backend (Port 8000)
โ
Google Gemini APIBoth services run in a single Docker container optimized for HuggingFace Spaces.
Author: Hanife Kaptan License: Apache 2.0
