Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SentiScan

AI-Powered Sentiment & Emotion Analysis API Provider Web App


SentiScan is a full-stack Flask-based API provider web application that allows users to:

  • Generate API keys of different sentiment models (R1, R2, R3) to integrate it with their app or workflow
  • Analyze text, files, or URLs for emotional tone and sentiment polarity
  • Track daily usage and visualize results via dynamic charts
  • Organize API keys into projects for grouped analysis

Key Features

FeatureDescription
API Key ManagementGenerate, delete, assign API keys to projects
Usage DashboardVisual breakdown of emotions, polarity, keywords
Project AnalysisAggregate tone analysis across all keys in a project
File & URL SupportAnalyze .txt, .pdf, .docx, and scrape from URLs (R3 only)
Authentication SystemRegister/Login with validations, email confirmation
Model VariantsR1 (Basic), R2 (Better), R3 (Advanced + URL)

️Tools

  • Frontend: HTML5, CSS3, JavaScript, Bootstrap 5
  • Backend: Python Flask
  • Database: MongoDB (NoSQL)
  • Auth: bcrypt, Flask Sessions
  • ML API: Groq (LLama-4 via API)
  • PDF/Docx Parsing: PyPDF2, python-docx
  • Charts: Highcharts.js

Model Capabilities

ModelFile SupportFeatures
R1.txtBasic sentiment & emotion analysis
R2.txt, .pdfImproved keyword + emotion mapping
R3.txt, .pdf, .docx, URLEmotion intensity scoring, advanced context

️ Local Setup

  1. Clone the repository
    git clone https://github.com/RoshRaj01/sentiscan.git
    cd sentiscan
  2. Install dependencies
    pip install flask pymongo bcrypt requests dnspython python-dotenv pypdf2 python-docx beautifulsoup4
    
  3. Setup your config.py
    DB_URL = your_mongodb_url
    GROQ_API_KEY = your_groq_api_key
    SECRET_KEY = your_secret
    
  4. Run the app through the terminal
    python app1.py
    
  5. Visit: http://localhost:5000

API Usage Example

POST: http://127.0.0.1:5000/api/analyze

Body:

{
"api_key": "ss-r3-xxxx",
"text": "I feel great today!"
}

Response:

{
"predicted_emotion": "Joy",
"predicted_polarity": "Positive"
}

Screenshots📸

Documentation

img_3.pngimg_4.png

Dashboard

img1.png

API Management

img.png

API Management

img_1.pngimg_2.png

About

SentiScan is an API provider website for emotion and polarity analysis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages