https://github.com/oguzhantekeli06/spotifymoodanalyzer
A application integrated with a deep learning model to analyze and predict user moods based on Spotify listening habits.
https://github.com/oguzhantekeli06/spotifymoodanalyzer
asp-net-core csharp flask-api machine-learning mood-analysis mvc prediction spotify-api
Last synced: 2 months ago
JSON representation
A application integrated with a deep learning model to analyze and predict user moods based on Spotify listening habits.
- Host: GitHub
- URL: https://github.com/oguzhantekeli06/spotifymoodanalyzer
- Owner: OguzhanTekeli06
- License: mit
- Created: 2024-08-27T08:40:29.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-25T18:55:09.000Z (6 months ago)
- Last Synced: 2024-12-25T19:29:12.163Z (6 months ago)
- Topics: asp-net-core, csharp, flask-api, machine-learning, mood-analysis, mvc, prediction, spotify-api
- Language: C#
- Homepage:
- Size: 12.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## πΆ Spotify Mood Prediction with ASP.NET Core MVC & Flask API
This ASP.NET Core MVC application integrates with the Spotify API to fetch audio features of recently played tracks. It sends these features to a Flask API hosting a machine learning model, which predicts the user's mood (e.g., happy, sad) based on listening habits.## π§ Features
Spotify API Integration: Retrieves audio features like valence, energy, and tempo.
Mood Prediction: Uses a Flask API model to predict emotional states.
Interactive Dashboard: Displays mood insights on the web interface.
## π Project Structure
### ASP.NET Core MVC
Model: There is no models for a now.
View: ASP.NET Core MVC views display user mood predictions and data.
Controller: Manages data flow between Spotify, Flask API, and the frontend.### FlaskApΔ±
ModelApiPKL.py: Flask API hosts the machine learning model for mood prediction.
mood_prediction_model.pkl: This file contains a machine learning model trained to predict users' moods. The model is trained on data derived from users' music listening habits and makes predictions about their emotional state.## π Getting Started
Prerequisites
.NET SDK
Python & Flask
Spotify Developer AccountClone the Repository
```
git clone https://github.com/OguzhanTekeli06/SpotifyMoodAnalyzer
```Configure Spotify API. Set up Client ID and Secret in the app configuration.From your spotifyapi app.
```
python ModelApi.py
```Start project
```
dotnet run
```Usage
Log in via Spotify to fetch recent audio data.
The app displays your mood based on audio features.## π€ Model Details
The Flask API model processes audio features for mood predictions using machine learning.## π License
Licensed under MIT.