skytnt commited on
Commit
c3dcce5
1 Parent(s): e6a1e45
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -173,7 +173,7 @@ def run(model_name, tab, instruments, drum_kit, bpm, mid, midi_events, seed, see
173
  mid_seq.append(token_seq)
174
  events.append(tokenizer.tokens2event(token_seq))
175
  ct = time.time()
176
- if ct - t > 0.1:
177
  yield mid_seq, None, None, seed, send_msgs([create_msg("visualizer_append", events), create_msg("progress", [i + 1, gen_events])])
178
  t = ct
179
  events = []
 
173
  mid_seq.append(token_seq)
174
  events.append(tokenizer.tokens2event(token_seq))
175
  ct = time.time()
176
+ if ct - t > 0.5:
177
  yield mid_seq, None, None, seed, send_msgs([create_msg("visualizer_append", events), create_msg("progress", [i + 1, gen_events])])
178
  t = ct
179
  events = []