Skip to content

INFINI∞TRACKS is the final project for the University of Chicago's MPCS 57200: Generative AI Course for the Winter 2024 Quarter. The project leverages a LangChain ReAct agent to facilitate communication between the myself and the Spotify Web API to create personalized playlists based on my top songs artists, or a surprise random genre.

Notifications You must be signed in to change notification settings

necabotheking/generative-ai-playlist-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INFINI∞TRACKS

Table of Contents:

  • Summary
  • Technologies/Project Prerequisites
  • Demo
  • Status
  • Reflection
  • References & Inspiration

Summary

This project, "INFINI∞TRACKS," is the final project for the University of Chicago's MPCS 57200: Generative AI Course for the Winter 2024 Quarter. The project leverages a LangChain ReAct agent to facilitate communication between the myself and the Spotify Web API to create personalized playlists based on my top songs, top artists, or a surprise random genre.

Technologies/Project Prerequisites

To run the application locally, ensure you have the following:

OPENAI_API_KEY: API key for OpenAI integration. SPOTIFY_CLIENT: Spotify Client ID for authentication. SPOTIFY_SECRET: Spotify Secret key for authentication.

  1. Sign up for the Spotify Web API and OpenAI to receive api keys
  2. Create a .env file and insert the api keys above
  3. Install the requirements with pip install -r requirements.txt
  4. Run the project within the directory that app.py is in using streamlit run app.py

Demo

Status

The project is finished.

Reflection

During development, several challenges were encountered, particularly due to the complexities and limitations associated with the development mode of apps in the Spotify Web API (e.g to have an app inm Extended Quota Mode for multiple user's to utilize it, Spotify Web API data cannot be used to train AI models, and more). Thus, the Spotify API restrictions prevented my original plan of integrating ChatGPT for personalized recommendations.

During the development of INFINI∞TRACKS, I gained valuable insights into integrating AI tools into Streamlit applications and learned extensively about working with the Spotify Web API. The project provided me with hands-on experience in creating personalized Spotify experience by allowing me to "speak" directly to my Spotify data with the ReAct agent through custom tools that my ReAct agent dynamically chose based on prompts within INFINI∞TRACKS.

Exploring the intersection of LangChain, Streamlit, and the Spotify Web API's recommendation AI was both challenging and rewarding. Despite the twists and turns, this project was a fascinating exploration of the uses of AI tools within LangChain and Spotify. I hope to continue developing this project well after the Generative AI course as additional functionality and tools using LangChain and Streamlit are created.

References & Inspiration

  1. Build your own playlist generator with Spotify’s API 🎧 (in Python!) by rob_med
  2. Spotify’s Authorization Code Flow For Dummies by ChrisOh431
  3. Make your Streamlit App Look Better by Yash Chuanhan
  4. LangChain: Creating an AI Agent utilizing the Spotify API Part I & II by Astropromeai
  5. Spotify GPT AGent by trancethehuman

About

INFINI∞TRACKS is the final project for the University of Chicago's MPCS 57200: Generative AI Course for the Winter 2024 Quarter. The project leverages a LangChain ReAct agent to facilitate communication between the myself and the Spotify Web API to create personalized playlists based on my top songs artists, or a surprise random genre.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published