Spaces:
Sleeping
Sleeping
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
- Clone or Extract the Repository
- Install Dependencies
pip install -r requirements.txt - Download NLTK Data
Run the following Python script to download necessary NLTK corpora:
import nltk nltk.download('stopwords') nltk.download('punkt') - 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
.envfile orconfig.py.
- Run the Application
The application will start onpython app.pyhttp://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).