asigalov61 commited on
Commit
6d56961
1 Parent(s): 4186f2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -36,7 +36,8 @@ def GenerateMIDI():
36
  print("Generating sequence of max length:", seq_len)
37
 
38
  progress(0, desc="Starting...")
39
-
 
40
  for i in progress.tqdm(range(seq_len)):
41
 
42
  try:
@@ -52,8 +53,10 @@ def GenerateMIDI():
52
 
53
  out = torch.cat((out, sample), dim=-1)
54
 
55
- if i % 16 == 0:
56
- print(i, '/', seq_len)
 
 
57
 
58
  except Exception as e:
59
  print('Error', e)
 
36
  print("Generating sequence of max length:", seq_len)
37
 
38
  progress(0, desc="Starting...")
39
+ step = 0
40
+
41
  for i in progress.tqdm(range(seq_len)):
42
 
43
  try:
 
53
 
54
  out = torch.cat((out, sample), dim=-1)
55
 
56
+ if step % 16 == 0:
57
+ print(step, '/', seq_len)
58
+
59
+ step += 1
60
 
61
  except Exception as e:
62
  print('Error', e)