Spaces:
Sleeping
Sleeping
fix again
Browse files
app.py
CHANGED
@@ -161,7 +161,7 @@ def run(model_name, tab, instruments, drum_kit, bpm, mid, midi_events, seed, see
|
|
161 |
max_len += len(mid)
|
162 |
events = [tokenizer.tokens2event(tokens) for tokens in mid_seq]
|
163 |
init_msgs = [create_msg("visualizer_clear", None), create_msg("visualizer_append", events)]
|
164 |
-
t = time.time()
|
165 |
yield mid_seq, None, None, seed, send_msgs(init_msgs)
|
166 |
model = models[model_name]
|
167 |
midi_generator = generate(model, mid, max_len=max_len, temp=temp, top_p=top_p, top_k=top_k,
|
|
|
161 |
max_len += len(mid)
|
162 |
events = [tokenizer.tokens2event(tokens) for tokens in mid_seq]
|
163 |
init_msgs = [create_msg("visualizer_clear", None), create_msg("visualizer_append", events)]
|
164 |
+
t = time.time() + 1
|
165 |
yield mid_seq, None, None, seed, send_msgs(init_msgs)
|
166 |
model = models[model_name]
|
167 |
midi_generator = generate(model, mid, max_len=max_len, temp=temp, top_p=top_p, top_k=top_k,
|