Reading by yourself ever feel a bit too quiet? BookTunes is here to help you out with a personalized playlist made especially for your book (and you ❤️).
BookTunes is a web application that generates song recommendations based on the vibe of the book you're currently reading. It creates a unique playlist to enhance your reading experience.
BookTunes uses OpenAI's GPT-3.5 Turbo model to generate song recommendations. Simply enter the name of your book, and BookTunes will create a playlist tailored to the mood of the book.
To use BookTunes, you need to set up the following credentials:
- OpenAI API Key
- Spotify Client ID and Client Secret
Make sure to set these credentials as environment variables:
export OPNAI=your_openai_api_key
export cid=your_spotify_client_id
export csecret=your_spotify_client_secret
- Clone the repository:
git clone https://github.com/PustakP/BookTunes.git
cd BookTunes
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
- Open your browser and go to http://localhost:8080
- Enter the name of the book you're reading.
- Click on the "Generate Playlist" button to get personalized song recommendations.
Contributions are welcome! If you have any ideas, suggestions, or find any issues, please open an issue or submit a pull request.
This project is licensed under the MIT License.
Happy Reading and Happy Listening! 📖🎧