asigalov61 commited on
Commit
8765df9
1 Parent(s): 4b10226

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -256,6 +256,9 @@ def GenerateAccompaniment(input_midi, input_num_tokens, input_conditioning_type,
256
 
257
  idx += 1
258
 
 
 
 
259
  print('=' * 70)
260
  print('Done!')
261
  print('=' * 70)
 
256
 
257
  idx += 1
258
 
259
+ if idx == len(chords[:input_num_tokens]):
260
+ break
261
+
262
  print('=' * 70)
263
  print('Done!')
264
  print('=' * 70)