Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -251,7 +251,7 @@ def generate_music_and_state(input_midi, num_prime_tokens, num_gen_tokens, num_m
|
|
| 251 |
list_of_MIDI_patches=[0]*16,
|
| 252 |
verbose=False
|
| 253 |
)
|
| 254 |
-
block_lines.append(midi_score[-1][1] if final_composition else 0)
|
| 255 |
|
| 256 |
batched_gen_tokens = generate_music(final_composition, num_gen_tokens, num_mem_tokens,
|
| 257 |
NUM_OUT_BATCHES, model_temperature)
|
|
@@ -298,7 +298,7 @@ def add_batch(batch_number, final_composition, generated_batches, block_lines):
|
|
| 298 |
if generated_batches:
|
| 299 |
final_composition.extend(generated_batches[batch_number])
|
| 300 |
midi_fname, midi_score = save_midi(final_composition)
|
| 301 |
-
block_lines.append(midi_score[-1][1] if final_composition else 0)
|
| 302 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
| 303 |
midi_score,
|
| 304 |
output_signature='Godzilla Piano Transformer',
|
|
|
|
| 251 |
list_of_MIDI_patches=[0]*16,
|
| 252 |
verbose=False
|
| 253 |
)
|
| 254 |
+
block_lines.append(midi_score[-1][1] / 1000 if final_composition else 0)
|
| 255 |
|
| 256 |
batched_gen_tokens = generate_music(final_composition, num_gen_tokens, num_mem_tokens,
|
| 257 |
NUM_OUT_BATCHES, model_temperature)
|
|
|
|
| 298 |
if generated_batches:
|
| 299 |
final_composition.extend(generated_batches[batch_number])
|
| 300 |
midi_fname, midi_score = save_midi(final_composition)
|
| 301 |
+
block_lines.append(midi_score[-1][1] / 1000 if final_composition else 0)
|
| 302 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
| 303 |
midi_score,
|
| 304 |
output_signature='Godzilla Piano Transformer',
|