Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def postprocess(txt, path):
|
|
| 58 |
for line in txt.split('\n'):
|
| 59 |
# we need to ignore the invalid output by the model
|
| 60 |
try:
|
| 61 |
-
pitch, duration, wait, velocity, instrument = line.split()
|
| 62 |
pitch, duration, wait, velocity = [int(x) for x in [pitch, duration, wait, velocity]]
|
| 63 |
if instrument not in tracks:
|
| 64 |
tracks[instrument] = symusic.core.TrackSecond()
|
|
|
|
| 58 |
for line in txt.split('\n'):
|
| 59 |
# we need to ignore the invalid output by the model
|
| 60 |
try:
|
| 61 |
+
pitch, duration, wait, velocity, instrument = line.split(',')
|
| 62 |
pitch, duration, wait, velocity = [int(x) for x in [pitch, duration, wait, velocity]]
|
| 63 |
if instrument not in tracks:
|
| 64 |
tracks[instrument] = symusic.core.TrackSecond()
|