/MusicRecommender

Primary LanguageJupyter Notebook

This project provides music genre recommendations and suggests Spotify playlists based on user input.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/nandhu-44/MusicRecommender.git
  2. Change directory to the project folder:

    cd MusicRecommender
  3. Install the required packages:

     pip install -r requirements.txt
  4. 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.
  5. Run the music.ipynb file to create the model.

  6. Run the code:

    • Windows:
      python musicRecommender.py
    • Linux/Mac:
      python3 musicRecommender.py