asigalov61 commited on
Commit
8ef0b3c
1 Parent(s): 6d56961

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -57,10 +57,15 @@ def GenerateMIDI():
57
  print(step, '/', seq_len)
58
 
59
  step += 1
60
-
 
 
 
61
  except Exception as e:
62
  print('Error', e)
63
  break
 
 
64
 
65
  if return_prime:
66
  melody_chords_f = out[:, :]
 
57
  print(step, '/', seq_len)
58
 
59
  step += 1
60
+
61
+ if step >= seq_len:
62
+ break
63
+
64
  except Exception as e:
65
  print('Error', e)
66
  break
67
+
68
+
69
 
70
  if return_prime:
71
  melody_chords_f = out[:, :]