This project implements an AI-powered music recommendation system using the Spotify API and Streamlit. It allows users to input their favorite artists and receive personalized music recommendations based on their preferences. The system leverages the Spotify API to access a vast catalog of songs and uses machine learning algorithms to generate recommendations.
Clone this repository: git clone https://github.com/your-username/spotify-music-recommender.git cd spotify-music-recommender
Create a virtual environment (optional but recommended): python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
Install the required packages: pip install -r requirements.txt
Set up Spotify API credentials:
recommender.py
file, replace 'YOUR_CLIENT_ID'
and 'YOUR_CLIENT_SECRET'
with your actual credentialsTo run the Streamlit app: streamlit run app.py
This will start the application and open it in your default web browser. If it doesn't open automatically, you can access it at http://localhost:8501
.
app.py
: Contains the Streamlit web application coderecommender.py
: Includes the recommendation logic and Spotify API interactionsrequirements.txt
: Lists all the required Python packagesREADME.md
: Provides information about the project and how to use itContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.