AlekseyKorshuk commited on
Commit
d94feec
1 Parent(s): 4dc9267

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from accompaniment_generator.generator.base import Generator
5
  import os
6
  import uuid
7
  from midi2audio import FluidSynth
8
-
9
 
10
 
11
  def inference(audio, num_epoch):
@@ -17,7 +17,8 @@ def inference(audio, num_epoch):
17
  fs = FluidSynth("font.sf2")
18
  fs.midi_to_audio(f'{name}.mid', f'{name}.wav')
19
  fs.midi_to_audio(audio.name, f'{name}-init.wav')
20
-
 
21
  return [f'{name}-init.wav', f'{name}.wav']
22
 
23
 
 
5
  import os
6
  import uuid
7
  from midi2audio import FluidSynth
8
+ import time
9
 
10
 
11
  def inference(audio, num_epoch):
 
17
  fs = FluidSynth("font.sf2")
18
  fs.midi_to_audio(f'{name}.mid', f'{name}.wav')
19
  fs.midi_to_audio(audio.name, f'{name}-init.wav')
20
+ time.sleep(2)
21
+ print([f'{name}-init.wav', f'{name}.wav'])
22
  return [f'{name}-init.wav', f'{name}.wav']
23
 
24