Spaces:
Runtime error
Runtime error
asigalov61
commited on
Commit
•
4e30bd2
1
Parent(s):
db78c42
Update app.py
Browse files
app.py
CHANGED
@@ -226,9 +226,7 @@ def GenerateAccompaniment(input_midi, input_num_tokens, input_conditioning_type,
|
|
226 |
if input_conditioning_type == 'Chords-Times-Durations':
|
227 |
output.append(durs[idx])
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
x = torch.tensor([chords] * 1, dtype=torch.long, device='cuda')
|
232 |
|
233 |
o = 0
|
234 |
|
@@ -256,7 +254,7 @@ def GenerateAccompaniment(input_midi, input_num_tokens, input_conditioning_type,
|
|
256 |
|
257 |
idx += 1
|
258 |
|
259 |
-
if idx == len(chords[:input_num_tokens])
|
260 |
break
|
261 |
|
262 |
print('=' * 70)
|
|
|
226 |
if input_conditioning_type == 'Chords-Times-Durations':
|
227 |
output.append(durs[idx])
|
228 |
|
229 |
+
x = torch.tensor([output] * 1, dtype=torch.long, device='cuda')
|
|
|
|
|
230 |
|
231 |
o = 0
|
232 |
|
|
|
254 |
|
255 |
idx += 1
|
256 |
|
257 |
+
if idx == len(chords[:input_num_tokens]):
|
258 |
break
|
259 |
|
260 |
print('=' * 70)
|