dx2102 commited on
Commit
83feed6
·
verified ·
1 Parent(s): 91d4acd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()