--- title: MoodTunes AI emoji: 🎵 colorFrom: green colorTo: blue sdk: streamlit sdk_version: 1.28.1 app_file: app.py pinned: false license: mit --- # 🎵 MoodTunes AI - Mood-Based Spotify Playlists with AI Art Transform your day into the perfect soundtrack! This AI-powered app analyzes your mood and creates personalized Spotify playlists with custom artwork generated from song lyrics. ## ✨ Features - 🧠 **AI Mood Analysis**: Advanced emotion detection using Hugging Face transformers - 🎵 **Spotify Integration**: Create real playlists in your Spotify account - 🎨 **Lyrics-to-Art**: AI generates artwork based on song lyrics - 🎧 **Custom Player**: Beautiful music player interface - 📱 **Responsive Design**: Works perfectly on all devices ## 🚀 How It Works 1. **Connect Spotify**: Login with your Spotify account 2. **Describe Your Day**: Tell us how you're feeling 3. **AI Analysis**: Our AI analyzes your mood and energy 4. **Playlist Creation**: Generate personalized playlists 5. **Artwork Generation**: Create unique art for each song ## 🛠️ Technology Stack - **Frontend**: Streamlit with custom CSS - **AI Models**: Hugging Face Transformers (Emotion + Sentiment) - **Music**: Spotify Web API - **Artwork**: Pollinations.ai for image generation - **Lyrics**: Lyrics.ovh API ## 🔧 Setup Instructions ### For Hugging Face Spaces: 1. Create a Spotify App at [developer.spotify.com](https://developer.spotify.com) 2. Add your credentials to Spaces secrets: - `SPOTIFY_CLIENT_ID` - `SPOTIFY_CLIENT_SECRET` 3. Update `REDIRECT_URI` in app.py to your Space URL 4. Deploy! ### For Local Development: ```bash pip install -r requirements.txt streamlit run app.py