Git Product home page Git Product logo

spotify-playlist-crewai's Introduction

Spotify Playlist with CrewAI

Learning by doing project to generate Spotify playlists using CrewAi.

(🥸 Improvements WIP 🥸)

Description

Sharing personal insights, including preferences and specific thoughts, aspects like your preferred music genre, current emotional state, activities you are engaged in, or particular needs you aim to satisfy. Agents will leverage this detailed information to craft a customized playlist with 10 songs.

Example of prompts

"Create a playlist with Eurovision 2024 songs", "I need a rock mood for the day", "To the EDM moon" ...

Demo

demo-spoty-crewai.mp4

Installation

  1. Clone the repository: git clone https://github.com/NTTLuke/spotify-playlist-crewai.git

  2. Install Poetry if you haven't already. You can follow the installation instructions on the Poetry website: Poetry Installation Guide.

  3. Install the required dependencies using Poetry:

    poetry install
  4. Set up your environment variables by creating a .env file based on the provided .env_example file and adding your specific values:

    # azure openai api key and endpoint
    AZURE_OPENAI_API_KEY = "your-azure-openai-api-key"
    AZURE_OPENAI_ENDPOINT = "your-azure-openai-endpoint"
    OPENAI_API_TYPE = "azure"
    OPENAI_API_VERSION = "your-azure-openai-api-version"
    AZURE_OPENAI_DEPLOYMENT_NAME="your-azure-openai-deployment-name"
    
    # openai api key
    OPENAI_API_KEY = "your-openai-key"
    
    # uncomment the following lines to use langsmith
    # LANGCHAIN_TRACING_V2=true
    # LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
    # LANGCHAIN_API_KEY=your-langchain-api-key
    # LANGCHAIN_PROJECT=your-langchain-project
    
    SERPER_API_KEY = "your-serper-api-key"
    
    # see https://developer.spotify.com/documentation/general/guides/app-settings/
    SPOTIFY_CLIENT_ID = "your-spotify-client-id"
    SPOTIFY_CLIENT_SECRET = "your-spotify-client-secret"
    
    
    

    Ensure you have registered your application with Spotify and obtained your client ID and client secret. Use http://localhost:8000/callback as Redirect URI. Refer to the Spotify Developer Documentation for instructions on how to create and configure your Spotify application. Additionally, you need to acquire your SerpApi key. Please refer to the SerpApi Documentation for more information on obtaining your API key.

Usage

Start FastAPI and run the Spotify Playlist with CrewAI application, follow these steps:

Run

poetry shell

then

uvicorn --app-dir=spotify_playlist api:app --reload

Test the application using the starting page provided at

http://localhost:8000/static/index.html

Caveats for Autoplay Feature

To use the new autoplay feature, you need to open the Spotify player on the selected device.

Note: Occasionally, the player may not immediately receive the play signal. In such cases, simply click on the playlist (without starting it) to trigger autoplay.

spotify-playlist-crewai's People

Contributors

nttluke avatar ivanfioravanti avatar

Stargazers

Aniket Yevankar avatar Ricardo Prado avatar  avatar Jonathan Nelson avatar  avatar  avatar Tim Dotson avatar  avatar Edoardo Federici avatar Riccardo Musmeci avatar  avatar P avatar Shaurya Rohatgi avatar Azim Kurt avatar  avatar Unknown.Artist.Ua avatar Lawrence Sullivan MD avatar Chad M avatar Guigoz Herve avatar EyeSeeThru avatar  avatar  avatar  avatar  avatar Vlad avatar  avatar Mister C avatar Perferic avatar Dominik Cichon avatar Tommy Gaidus avatar  avatar Salim Benabbou avatar  avatar Wayne Dahlberg avatar  avatar  avatar  avatar Octavio Gzain avatar  avatar  avatar Elie Habib avatar  avatar  avatar  avatar Gurumurthi V Ramanan avatar Sudhanshu Passi avatar Rasmus Rynell avatar  avatar Sasi Kiran Malladi avatar amrrs avatar  avatar ashish avatar Emre Koc avatar  avatar Alan Matzumiya avatar William Manzoli avatar Erran Su avatar Fatih avatar Szymon Kowalewski avatar  avatar  avatar Ziv Erlichson avatar Valentin Ganchev avatar Lukasz Hanusik avatar O.S.H avatar  avatar Reza Sayar avatar Manav Trapasia avatar Vincent avatar Raoni Meira Gabriel avatar  avatar nicekate avatar Markus Rauhalahti avatar WhatIfDev avatar Cristóferson Bueno avatar  avatar Julian Harris avatar Neo@Matrix avatar  avatar Adriano Amalfi avatar

Watchers

 avatar  avatar Kostas Georgiou 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.