Giter Site home page Giter Site logo

rotations's Introduction

Generate a playlist from any picture using AI. Capture the nuances and inflections of your mood perfectly and display its quirks spatially.

Rotation

How it works

Leveraging CLIP, GPT-4 and Spotify seed recommendations, Rotation is able to transform text or images into curated playlists. Then, Rotation uses Principal Component Analysis (PCA) to reduce audio features of each song, such as liveness, energy, and tempo, to a dimensionality of three.

Rotation

Running Locally

Clone the repository to the local machine

git clone https://github.com/mcantillon21/rotations/
cd rotations
npm install
npm run dev

If just touching the frontend, this is enough to test.

Backend

This project uses Modal to deploy the backend, through the public webhook: https://mcantillon21--rotation-fastapi-app.modal.run. It make take some effort to re-create the backend, as it will require a Spotify App from your own developer account.

You will need three keys: OPENAI_API_KEY, REPLICATE_API_KEY and your Spotify App ID / Secret.

To redeploy to your own webhook, you will need to set up a Modal account and run modal deploy index.py. You will then need to change the endpoint in your frontend to point to the new backend URL.

rotations's People

Contributors

mcantillon21 avatar

Stargazers

Lee Harrold avatar Shawn Charles avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.