This project provides music genre recommendations and suggests Spotify playlists based on user input.
-
Clone this repository to your local machine:
git clone https://github.com/nandhu-44/MusicRecommender.git
-
Change directory to the project folder:
cd MusicRecommender
-
Install the required packages:
pip install -r requirements.txt
-
Setup
playlists.json
file.- Create a new file named
playlists.json
in the project folder. - Add your spotify playlist links to the file in the following format:
{ "genre1": ["playlist1", "playlist2", "playlist3"], "genre2": ["playlist1", "playlist2", "playlist3"], "genre3": ["playlist1", "playlist2", "playlist3"] }
- Save the file.
- Create a new file named
-
Run the
music.ipynb
file to create the model. -
Run the code:
- Windows:
python musicRecommender.py
- Linux/Mac:
python3 musicRecommender.py
- Windows: