--- title: Magenta RT2 Piano CPU emoji: 🎹 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 6.3.0 app_file: app.py pinned: false license: cc-by-4.0 --- # Magenta RealTime 2 - Piano (CPU) Google DeepMind's [Magenta RealTime 2](https://huggingface.co/google/magenta-realtime-2) music generation model running on CPU via ONNX. Uses [blanchon/magenta-realtime-2-onnx](https://huggingface.co/blanchon/magenta-realtime-2-onnx) - the small variant (230M params). ## How to use 1. Click piano keys to hold notes (click again to release) 2. Type a style prompt 3. Hit **Generate Music** No MIDI device needed. Generation takes 1-3 minutes for 5 seconds of audio on CPU. ## Credits - Model: Google DeepMind, licensed CC-BY-4.0 - ONNX export: [blanchon](https://huggingface.co/blanchon) - Original demo spaces: [magenta-community](https://huggingface.co/magenta-community)