A Flask-based website that enables users to upload their Apple Music playlists and generate playlist names using GPT-3.5. The Spotify API is used to connect to the user's account and retrieve both their playlists and the songs inside each playlist. The OpenAI API text-davinci-003 model is used to generate names for the playlists based on the songs inside them.
Clone repository
git clone https://github.com/theobaur13/playlist-name-generatorSet up virtual environment
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txtCreate a file named keys.py into the playlist-name-generator directory and add API keys from Apple Music API, OpenAI API, and your own custom generated Flask secret key.
config_key = "CUSTOM_CONFIG_KEY"
apple_team_id = "APPLE_TEAM_ID"
apple_key_id = "APPLE_KEY_ID"
apple_secret_key = "-----BEGIN PRIVATE KEY-----APPLE_PRIVATE_KEY-----END PRIVATE KEY-----"Add the environment variables DEVELOPER_KEY and EXPIRY, these will be overwritten so it doesn't matter what these are set to
set DEVELOPER_TOKEN=abcs
set EXPIRY=0venv\Scripts\activate
# launches website to localhost
py wsgi.pyPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.