Spaces:
Runtime error
Runtime error
fix again
Browse files
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.
|
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 = []
|