Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -265,7 +265,7 @@ def generate_music_and_state(input_midi, num_prime_tokens, num_gen_tokens, num_m
|
|
265 |
midi_fname, midi_score = save_midi(preview_tokens + tokens, batch_number=i)
|
266 |
plot_kwargs = {'plot_title': f'Batch # {i}', 'return_plt': True}
|
267 |
if len(final_composition) > PREVIEW_LENGTH:
|
268 |
-
plot_kwargs['preview_length_in_notes'] =
|
269 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
270 |
midi_score,
|
271 |
output_signature='Godzilla Piano Transformer',
|
|
|
265 |
midi_fname, midi_score = save_midi(preview_tokens + tokens, batch_number=i)
|
266 |
plot_kwargs = {'plot_title': f'Batch # {i}', 'return_plt': True}
|
267 |
if len(final_composition) > PREVIEW_LENGTH:
|
268 |
+
plot_kwargs['preview_length_in_notes'] = len([t for t in preview_tokens if t > 256])
|
269 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
270 |
midi_score,
|
271 |
output_signature='Godzilla Piano Transformer',
|