Coder Social home page Coder Social logo

necabotheking / generative-ai-playlist-maker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.74 MB

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.

Python 91.21% CSS 8.79%

generative-ai-playlist-maker's Introduction

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

generative-ai-playlist-maker's People

Contributors

necabotheking avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.