A newer version of the Gradio SDK is available:
5.44.1
metadata
title: Interactive Symbolic Music Demo
emoji: 🖼
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 4.42.0
app_file: app.py
pinned: false
python_version: 3.9.19
license: mit
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Please find mido.MidoFile inside the pretty_midi package, and set all arg "clip" to clip=True
use set_seed(42) in sampler_sdf.py, generation result from chord slice (index = 2) is a good example (a wrong note is shifted to a correct one)