sentiment-analysis / README.md
sabarish
Add Hugging Face configuration to README
1d8189d
metadata
title: Sentiment Analysis
emoji: 🦀
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false

AI-Based Sentiment Analysis System

Prerequisites

  • Python 3.8+
  • MySQL Server

Setup Instructions

  1. Clone or Extract the Repository
  2. Install Dependencies
    pip install -r requirements.txt
    
  3. Download NLTK Data Run the following Python script to download necessary NLTK corpora:
    import nltk
    nltk.download('stopwords')
    nltk.download('punkt')
    
  4. Database Setup
    • Ensure MySQL is running.
    • Run the schema script or let SQLAlchemy create the tables automatically.
    • You can run the script manually: mysql -u root -p < sql/schema.sql (Adjust credentials as needed).
    • If using a different database name or credentials, update the .env file or config.py.
  5. Run the Application
    python app.py
    
    The application will start on http://127.0.0.1:5000.

Default Admin Account

  • Email: admin@example.com
  • Password: admin123 (Note: If the DB is populated from schema.sql, this account is auto-created. Otherwise, you can register a new account from the UI and change the role in the database manually).