A web interface for Demucs, a state-of-the-art music source separation model. Separate vocals, drums, bass and others from any track.
First, you need to deploy the Demucs server inside demucs folder somewhere.
This server will be responsible for separating the audio tracks, so it needs GPU support.
I deployed this on Lightning AI.
These are environment variables for the Demucs server:
API_URL: URL of the web interface serverMODEL: Model to use for separation.htdemucs_ftis recommended. Read more about the models here.
Then you can deploy the web interface server:
docker compose up -d --buildThese are environment variables for the web interface server:
SECRET: Secret key for the server, used for authenticationDEMUCS_API: URL of the Demucs serverDEMUCS_API_KEY: API key for the Demucs server (optional, if deployed on Lightning AI)
Make sure you have Bun installed, then run:
bun devCheck http://localhost:3000 to see the result.
This project is licensed under the MIT license. See the LICENSE file for more information.
