Skip to content

laizaparizotto/langchain_spotify_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langchain Spotify App

This is a chat to play songs on spotify using Langchain Agents.

Setup

  • Sign up for Spotify and Spotify API (developer.spotify.com)

  • Create an app on your spotify developer account and and save "client id", "client secret".

  • As we are running this repository locally, select a random redirect URI i.e. "http://localhost/". (will be updated later)

  • Sign up for OpenAI API Key

  • Clone git repo.

  • Create a .env file and write these values in

OPENAI_API_KEY=
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_REDIRECT_URI=
  • Create a new Python virtual environment

py -m venv langchain_spotify_app (Windows 11)

  • Start virtual environment manually by running:

.\langchain_spotify_app\Scripts\activate (Windows 11)

  • Install Python requirements in the project repository: pip install -r requirements.txt

Usage

To start: py main.py (Windows 11)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages