Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
77d1363
1
Parent(s):
30685fa
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def GenerateMIDI():
|
|
38 |
|
39 |
for i in progress.tqdm(range(seq_len)):
|
40 |
|
41 |
-
try:
|
42 |
x = out[:, -max_seq_len:]
|
43 |
|
44 |
torch_in = x.tolist()[0]
|
@@ -51,9 +51,9 @@ def GenerateMIDI():
|
|
51 |
|
52 |
out = torch.cat((out, sample), dim=-1)
|
53 |
|
54 |
-
except Exception as e:
|
55 |
-
|
56 |
-
|
57 |
|
58 |
if return_prime:
|
59 |
melody_chords_f = out[:, :]
|
|
|
38 |
|
39 |
for i in progress.tqdm(range(seq_len)):
|
40 |
|
41 |
+
#try:
|
42 |
x = out[:, -max_seq_len:]
|
43 |
|
44 |
torch_in = x.tolist()[0]
|
|
|
51 |
|
52 |
out = torch.cat((out, sample), dim=-1)
|
53 |
|
54 |
+
#except Exception as e:
|
55 |
+
# print('Error', e)
|
56 |
+
# break
|
57 |
|
58 |
if return_prime:
|
59 |
melody_chords_f = out[:, :]
|