asigalov61 commited on
Commit
77d1363
1 Parent(s): 30685fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- print('Error', e)
56
- break
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[:, :]