Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,7 @@ def tokens_to_MIDI(tokens, MIDI_name):
|
|
317 |
print('Done!')
|
318 |
print('=' * 70)
|
319 |
|
320 |
-
return new_fn, audio
|
321 |
|
322 |
# =================================================================================================
|
323 |
|
@@ -453,7 +453,14 @@ def CompareMIDIs(input_src_midi, input_trg_midi, input_sampling_resolution, inpu
|
|
453 |
|
454 |
#===============================================================================
|
455 |
|
|
|
|
|
|
|
|
|
456 |
|
|
|
|
|
|
|
457 |
#========================================================
|
458 |
|
459 |
output_midi_title = str(fn1)
|
|
|
317 |
print('Done!')
|
318 |
print('=' * 70)
|
319 |
|
320 |
+
return new_fn, song_f, audio
|
321 |
|
322 |
# =================================================================================================
|
323 |
|
|
|
453 |
|
454 |
#===============================================================================
|
455 |
|
456 |
+
print('Rendering results...')
|
457 |
+
|
458 |
+
sname, ssong_f, saudio = tokens_to_MIDI(src_tokens[:comp_length], sfn1)
|
459 |
+
tname, tsong_f, taudio = tokens_to_MIDI(trg_tokens[:comp_length], tfn1)
|
460 |
|
461 |
+
print('Done!')
|
462 |
+
print('=' * 70)
|
463 |
+
|
464 |
#========================================================
|
465 |
|
466 |
output_midi_title = str(fn1)
|