Spaces:
Running
Running
MuGeminorum
commited on
Commit
•
f401070
1
Parent(s):
a531320
try fix abc
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -119,9 +119,9 @@ def infer(audio_url: str):
|
|
119 |
|
120 |
midi, title = audio2midi(download_path)
|
121 |
xml = midi2xml(midi, title)
|
122 |
-
abc = xml2abc(xml)
|
123 |
mxl = xml2mxl(xml)
|
124 |
pdf, jpg = xml2jpg(xml)
|
|
|
125 |
|
126 |
return download_path, midi, pdf, xml, mxl, abc, jpg
|
127 |
|
|
|
119 |
|
120 |
midi, title = audio2midi(download_path)
|
121 |
xml = midi2xml(midi, title)
|
|
|
122 |
mxl = xml2mxl(xml)
|
123 |
pdf, jpg = xml2jpg(xml)
|
124 |
+
abc = xml2abc(xml)
|
125 |
|
126 |
return download_path, midi, pdf, xml, mxl, abc, jpg
|
127 |
|
requirements.txt
CHANGED
@@ -3,4 +3,5 @@ piano_transcription_inference
|
|
3 |
pymupdf
|
4 |
music21
|
5 |
modelscope
|
6 |
-
torch
|
|
|
|
3 |
pymupdf
|
4 |
music21
|
5 |
modelscope
|
6 |
+
torch
|
7 |
+
transformers
|