NotaGen-Inference / README.md
manoskary's picture
Update README.md
a7f1eb3 verified
|
raw
history blame
1.4 kB
metadata
title: NotaGen Inference
emoji: 🎵
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.0.0
app_file: app.py
pinned: false
license: mit

NotaGen - Symbolic Music Generation

Generate symbolic music in ABC notation using NotaGen.

This space provides an API endpoint (/infer) for remote inference without local computation.

Usage

Web Interface

Simply enter the musical period, composer style, and instrumentation, then click "Generate ABC Notation".

API Access

from gradio_client import Client

client = Client("https://huggingface.co/spaces/<your-username>/<space-name>")

result = client.predict(
    period="Classical",
    composer="Mozart",
    instrumentation="Piano",
    api_name="/infer"
)

print(result)  # ABC notation string

Parameters

  • period: Musical period (e.g., Classical, Romantic, Baroque)
  • composer: Composer style (e.g., Mozart, Chopin, Bach)
  • instrumentation: Instruments (e.g., Piano, Violin, Orchestra)

Output

Returns ABC notation as a plain text string. This can be converted to PDF, XML, MIDI, etc. using WeaveMuse or other ABC processing tools.

Integration

This space is designed to work with WeaveMuse for remote music generation without local GPU computation.

Model

Uses the NotaGen model for symbolic music generation.

License

MIT License