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.

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.

(🥸 Improvements WIP 🥸)

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"
    
    
    SERPER_API_KEY = "your-serper-api-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
    
    # 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

spotify-playlist-crewai's People

Contributors

nttluke avatar ivanfioravanti 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.