Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import streamlit_pianoroll
|
3 |
+
from datasets import load_dataset
|
4 |
+
from fortepyan import MidiPiece
|
5 |
+
|
6 |
+
dataset = load_dataset("epr-labs/maestro-sustain-v2", split="train")
|
7 |
+
piece = MidiPiece.from_huggingface(dataset[312])
|
8 |
+
|
9 |
+
streamlit_pianoroll.from_fortepyan(piece)
|