Skip to content

A laptop application to suggest music based on the atmosphere of given image.

Notifications You must be signed in to change notification settings

N-Shimoda/Rutilea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rutilea 選考課題2

About

A laptop application to suggest music based on the atmosphere of given image. This is an assignment project for Rutilea selection.

Non-AI-native application engineering, Task 3

Developing an application that uses LLM to select music appropriate to the atmosphere of a given photograph. (Google docs)

Picture of application

Usage

Setup

Entire application is implemented by Python. Before activation, create an environment with environment.yml.

conda env create -f environment.yml

API keys

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.

Activation

Run following command in your terminal. Program should be ran in the top directory (Rutilea).

python gui.py

Files & Directories

  • 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 except img/artwork_*.jpg.
  • environment.yml : Requirements for conda environment.
  • experiments : Experiment projects used for development.

Reference

About

A laptop application to suggest music based on the atmosphere of given image.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published