Skip to content

MohammadHR10/Mood_tracker_2.0

Repository files navigation

🧠 AI-Based Mood & Emotion Tracker

Streamlit Python Status

🚀 Track and analyze your emotions with AI-powered sentiment analysis.
🔗 Live Demo: Try the App Here


📖 Overview

This AI-powered Mood & Emotion Tracker helps users log their thoughts, analyzes their emotional state, and visualizes mood trends over time. The app utilizes Google's Gemini AI for sentiment analysis and provides insightful feedback for emotional well-being.

Features

  • 🤖 AI-Powered Sentiment Analysis of user inputs.
  • 📝 Mood Logging with CSV storage for historical tracking.
  • 📈 Mood Trends Visualization with Matplotlib.
  • 📆 Weekly Mood Reports summarizing emotional trends.
  • 📥 Downloadable Reports for personal tracking.

🛠 Tech Stack

  • Frontend & UI: Streamlit
  • AI Processing: Google's Gemini API
  • Data Handling: Pandas, CSV
  • Visualization: Matplotlib
  • Deployment: Streamlit Cloud

🔧 Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/MohammadHR10/Mood_tracker_2.0.git
cd Mood_tracker_2.0

2️⃣ Set Up a Virtual Environment (Optional)

python -m venv venv
source venv/bin/activate  # On macOS/Linux
venv\Scripts\activate  # On Windows

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Run the Application

streamlit run mood_tracker.py

🔄 CI/CD Workflow

This project uses GitHub Actions for continuous integration:

📋 CI Pipeline

  • Runs automatically on every push and pull request
  • Performs linting with flake8
  • Runs unit tests with pytest
  • Generates test coverage reports

🏷️ PR Labeling

Pull requests are automatically labeled based on the files changed:

  • documentation: Changes to README and other markdown files
  • tests: Changes to test files
  • dependencies: Updates to requirements.txt or other dependency files
  • ui: Changes to the Streamlit UI components
  • workflow: Updates to GitHub Actions or CI configuration
  • configuration: Changes to configuration files
  • bugfix: Bug fixes
  • feature: New features

🧪 Running Tests Locally

# Install test dependencies
pip install pytest pytest-cov flake8

# Run tests
pytest tests/

🌐 Live Demo Try the AI Mood Tracker here! 🚀

📜 License This project is licensed under the MIT License.

Why This Works?

✅ Fixes the numbering issue.
✅ Removes duplicate sections.
✅ Keeps everything structured professionally.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published