asigalov61 commited on
Commit
bac0956
·
verified ·
1 Parent(s): 7019974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -322,7 +322,8 @@ def tokens_to_MIDI(tokens, MIDI_name):
322
  # =================================================================================================
323
 
324
  @spaces.GPU
325
- def CompareMIDIs(input_midi, input_num_of_notes, input_patch_number):
 
326
  print('=' * 70)
327
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
328
  start_time = reqtime.time()
@@ -365,15 +366,17 @@ def CompareMIDIs(input_midi, input_num_of_notes, input_patch_number):
365
  print('Done!')
366
  print('=' * 70)
367
 
368
- fn = os.path.basename(input_midi.name)
369
- fn1 = fn.split('.')[0]
370
-
371
- input_num_of_notes = max(8, min(2048, input_num_of_notes))
372
 
 
 
 
373
  print('-' * 70)
374
- print('Input file name:', fn)
375
- print('Req num of notes:', input_num_of_notes)
376
- print('Req patch number:', input_patch_number)
 
377
  print('-' * 70)
378
 
379
  #===============================================================================
 
322
  # =================================================================================================
323
 
324
  @spaces.GPU
325
+ def CompareMIDIs(input_src_midi, input_trg_midi, input_sampling_resolution, input_sampling_overlap):
326
+
327
  print('=' * 70)
328
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
329
  start_time = reqtime.time()
 
366
  print('Done!')
367
  print('=' * 70)
368
 
369
+ sfn = os.path.basename(input_src_midi.name)
370
+ sfn1 = sfn.split('.')[0]
 
 
371
 
372
+ tfn = os.path.basename(input_trg_midi.name)
373
+ tfn1 = tfn.split('.')[0]
374
+
375
  print('-' * 70)
376
+ print('Input src MIDI name:', sfn)
377
+ print('Input trg MIDI name:', tfn)
378
+ print('Req sampling resolution:', input_sampling_resolution)
379
+ print('Req sampling overlap:', input_sampling_overlap)
380
  print('-' * 70)
381
 
382
  #===============================================================================