A laptop application to suggest music based on the atmosphere of given image. This is an assignment project for Rutilea selection.
Developing an application that uses LLM to select music appropriate to the atmosphere of a given photograph. (Google docs)
Entire application is implemented by Python. Before activation, create an environment with environment.yml
.
conda env create -f environment.yml
Application uses following API keys to function. Please prepare them in advance.
- OpenAI API key : for using GPT-3.5 as LLM in
src/visual_LLM.py
. - Spotify Client ID & Secret : for using Spotify API in
src/spotify.py
.
Run following command in your terminal. Program should be ran in the top directory (Rutilea
).
python gui.py
gui.py
: Toplevel of application.src
: Functions for back-processing.spotify.py
: For Spotify search.visual_LLM.py
: GPT-3.5 agent for suggesting musical piece from image.image_tools.py
: Image description tools for GPT agent.
img
: Directory for storing image files. DO NOT delete files exceptimg/artwork_*.jpg
.environment.yml
: Requirements for conda environment.experiments
: Experiment projects used for development.
- "Ask questions to your images using LangChain and Python", a Medium blog by Plaban Nayak