Update app.py
Browse files
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(
|
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,
|