asigalov61 commited on
Commit
3ceed14
·
verified ·
1 Parent(s): 637d6b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -297,7 +297,7 @@ def Generate_Chords(input_midi, input_num_prime_chords, input_num_gen_chords, in
297
  for m in melody_chords2[:input_num_prime_chords]:
298
  output.extend(m)
299
 
300
- for ct in tqdm.tqdm(melody_chords2[input_num_prime_chords:]):
301
 
302
  if input_conditioning_type == 'Chords':
303
  output.extend(ct[:1])
@@ -309,7 +309,7 @@ def Generate_Chords(input_midi, input_num_prime_chords, input_num_gen_chords, in
309
 
310
  while y > 645:
311
 
312
- x = torch.LongTensor(song).to(DEVICE)
313
 
314
  with ctx:
315
  out = model.generate(x,
 
297
  for m in melody_chords2[:input_num_prime_chords]:
298
  output.extend(m)
299
 
300
+ for ct in tqdm.tqdm(melody_chords2[input_num_prime_chords:input_num_gen_chords]):
301
 
302
  if input_conditioning_type == 'Chords':
303
  output.extend(ct[:1])
 
309
 
310
  while y > 645:
311
 
312
+ x = torch.LongTensor(output).to(DEVICE)
313
 
314
  with ctx:
315
  out = model.generate(x,