asigalov61 commited on
Commit
5cb4af1
1 Parent(s): f5bb777

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -105,8 +105,9 @@ def run(search_prompt, mid=None):
105
  j = 0
106
  for i in range(len(mid_seq)-1):
107
  if mid_seq[i][0] == 'note':
108
- yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [j + 1, len(mid_seq)])]
109
  j += 1
 
 
110
 
111
  with open(f"output.mid", 'wb') as f:
112
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
 
105
  j = 0
106
  for i in range(len(mid_seq)-1):
107
  if mid_seq[i][0] == 'note':
 
108
  j += 1
109
+ yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [j + 1, len(mid_seq)])]
110
+
111
 
112
  with open(f"output.mid", 'wb') as f:
113
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))