Spaces:
Paused
Paused
|
Download README.md from JayLL13/tune-studio: direct link, hf CLI and curl.
- Browser
- Download file 2.62 kB
-
https://huggingface.co/spaces/JayLL13/tune-studio/resolve/main/README.md
- Command line
-
hf download hf://spaces/JayLL13/tune-studio/README.md
-
curl -L -o README.md https://huggingface.co/spaces/JayLL13/tune-studio/resolve/main/README.md
2.62 kB
| title: Tune Studio | |
| emoji: 🎵 | |
| colorFrom: purple | |
| colorTo: blue | |
| sdk: gradio | |
| sdk_version: 5.49.1 | |
| app_file: app.py | |
| python_version: "3.10.13" | |
| suggested_hardware: zero-a10g | |
| models: | |
| - m-a-p/YuE2-3B | |
| license: cc-by-nc-4.0 | |
| short_description: Type a topic, get a sung song made with YuE2-3B. | |
| # Tune Studio | |
| Type a topic and pick a style. The app writes English lyrics with DeepSeek V4.1 Flash (via Hugging Face Inference Providers), then sings and produces the song with [YuE2-3B](https://huggingface.co/m-a-p/YuE2-3B) on ZeroGPU. | |
| ## Using the app | |
| 1. Open **Settings** and paste a Hugging Face token with the *Make calls to Inference Providers* permission. The token is stored only in your browser. | |
| 2. In **1 · Idea**, type your topic, pick a lyric structure and a style, and click **Create song**. After the first song this button reads **New song** and always makes new lyrics and new music. | |
| 3. Optional: open **Advanced** to choose symbolic planning (melody + chords, melody only, or no score), render quality (32 steps by default, or 16 for a faster draft), and the seed. | |
| 4. **2 · Lyrics** and the score in **3 · Music** are editable, so you can also type or paste your own. Lyrics need section tags on their own lines, such as `[Verse]` and `[Chorus]`. Each box has a download button (`lyrics.txt`, `abc_score.txt`) that saves its current text. | |
| 5. **Rewrite lyrics · keep melody** has the AI rewrite the lyrics with the same sections and sings them on the score in column 3. | |
| 6. **Sing with this score** sings the lyrics in column 2 on the score in column 3 as they are, so use it after editing either one. | |
| 7. **New music · keep lyrics** composes a new score for the lyrics in column 2, using the style and Advanced settings from column 1. | |
| The two score actions reuse the last song's style and seed so only your edits change. Before any song, they use the column 1 settings. | |
| ## Run locally | |
| Needs Linux, Python 3.10+, ffmpeg, and an NVIDIA GPU with about 24 GB VRAM (ZeroGPU is only available on Hugging Face). | |
| ```bash | |
| python -m venv .venv && source .venv/bin/activate | |
| pip install -r requirements.txt gradio==5.49.1 | |
| python app.py | |
| ``` | |
| Open http://localhost:7860. The first start downloads the model weights. | |
| ## Tests | |
| ```bash | |
| pip install -r requirements.txt pytest httpx | |
| pytest | |
| ``` | |
| The lyrics tests run without a GPU or network. | |
| ## Layout | |
| - `app.py`: Gradio UI and job flow. | |
| - `song_engine.py`: YuE2 pipeline, rendered inside a `@spaces.GPU` call. | |
| - `lyrics.py`: lyrics client for Hugging Face Inference Providers. | |
| ## License | |
| Model weights are CC BY-NC 4.0, so this Space is for non-commercial use. | |