Deniz95's picture
Update README.md
96ba24a
|
Raw
History Blame Contribute Delete
1.98 kB
---
license: apache-2.0
title: Spotify Danceability
sdk: gradio
emoji:
colorFrom: yellow
colorTo: green
---
# "Spotify Danceability ML Playlist" project description
- The development of a Machine Learning model that guesses the danceability scores of Spotify songs ( (of 140k tracks in Spotify).
- The model uses gradient boosting and hyperparameter optimization to achieve the most accurate results -less than 10% error!
- The project is able to create the playlist on user's own account using the Spotify Python API!
- model.py - Inludes whole model structure. At the end of hyperparameter optimization on 3 different models we got an RMSE score less than 0.1.
- model_ML_Pipeline.py : When you run this on python from cmd, a webapp starts locally on your machine to run the program.
- requirements.txt: Python module dependencies and versions are here.
### Installation:
pip install -r requirements.txt (works better on pycharm virtual environment!)
### Creation of dummy Spotify project (Will be done only once!):
The link explaining how to do it: https://www.codeproject.com/Tips/5276627/HowTo-Setup-a-Spotify-API-App-in-the-Spotify-Devel
### How to run (on Windows):
1. Install dependencies as written below in "Installation"
pip install -r requirements.txt on command line <br>
2. Run "model_ML_Pipeline.py" from commandline <br>
3. On command line there is a local address that web app tuns on your machine, click on it to open app. \
5. Enter your spotify userid, client id (from dummy Spotify project above) and client secret (again from dummy Spotify project above) to web app as inputs and hit 'Submit' \n
6. To get your spotify user id: <br>
From "https://open.spotify.com/" on top right click on "Account". <br>
On the new tab click "Edit profile" and there you have your user id! <br>
7. Web app runs and gives you the output as "Hello 12345678912 The ML Dance Playlist has been created: <br>
ML Dance Playlist 14_48_time". <br>