Skip to content

rohankumar2025/WrappedGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WrappedGPT

WrappedGPT is designed to function similar to other websites out there like favoritemusic.guru which looks through all of your Spotify listens and shows your most listened to tracks and artists over various term lengths. However, what makes it different (apart from its aesthetic interface) is its recommendation engine. WrappedGPT leverages Large Language Models that have been trained on the entire internet (particularly GPT3.5-Turbo) and returns customized song recommendations based on your own listens. Additionally, it provides links for every recommendation it makes. (Note: If you want to use the site without having your listening data sent to OpenAI for whatever reason, this part is entirely optional. You have to click a button to get recommendations otherwise your listening data will not be sent at all.)

Screenshot 2023-07-15 at 7 45 58 PM

Usage

Once you login to your Spotify account, you will be shown your 100 most listened to tracks.

Screenshot 2023-07-15 at 7 49 22 PM

Using the menu on the top right of the screen, you can switch between Short Term, Medium Term, and Long Term. Short Term only uses your listening data for the past 4 weeks, while Medium Term and Long Term use your data from the past 3 months and 3 years respectively. You can read Spotify's API Documentation to learn more about this.

Screenshot 2023-07-15 at 7 49 39 PM

Similarly, you can view your Short, Medium, and Long Term most listened to artists by clicking the Artists tab on the top left of the screen.

Screenshot 2023-07-15 at 7 49 54 PM

If you want to get recommendations from GPT3.5-Turbo, you need to click onto the Recommendations tab. Once you open it, you will see an empty list like this:

Screenshot 2023-07-15 at 7 50 25 PM

Once you click the button, you will need to wait a few seconds (OpenAI's APIs are relatively slow, so it may take up to 30 seconds). Eventually, you will see up to 25 custom recommendations show up one-by-one with their Album Covers and Spotify links.

Screenshot 2023-07-15 at 7 53 37 PM

Takeaways / Future Changes

Currently, WrappedGPT cannot be deployed publicly, because Spotify has not provided my project public access. This means it only works for a few select accounts that I can assign. In future, when this is resolved (takes up to 6 weeks for each extension request) I will upload this site publicly. Information about how to make a site similar to WrappedGPT (without any of the CSS or front-end decorative code) is available at the following Medium blogpost:

https://medium.com/@rohankumar_75589/using-chatgpt-to-recommend-songs-based-on-your-listening-history-1f73100309ad

Happy Coding!