CoolFace
Apppublic

hanifekaptan/ai-agent-for-aspect-based-sentiment-analysis

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

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

Architecture

Streamlit Frontend (Port 7860)
         โ†“
FastAPI Backend (Port 8000)
         โ†“
Google Gemini API

Both services run in a single Docker container optimized for HuggingFace Spaces.


Author: Hanife Kaptan License: Apache 2.0