BorisovMaksim commited on
Commit
7d2f0b1
·
1 Parent(s): 27cc68f

fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ from denoisers.SpectralGating import SpectralGating
9
  def denoising_transform(audio):
10
  src_path = Path(__file__).parent.resolve() / Path("cache_wav/original/{}.wav".format(str(uuid.uuid4())))
11
  tgt_path = Path(__file__).parent.resolve() / Path("cache_wav/denoised/{}.wav".format(str(uuid.uuid4())))
12
- src_path.parent.mkdir(exist_ok=True)
13
- tgt_path.parent.mkdir(exist_ok=True)
14
  (ffmpeg.input(audio)
15
  .output(src_path, acodec='pcm_s16le', ac=1, ar=22050)
16
  .run()
 
9
  def denoising_transform(audio):
10
  src_path = Path(__file__).parent.resolve() / Path("cache_wav/original/{}.wav".format(str(uuid.uuid4())))
11
  tgt_path = Path(__file__).parent.resolve() / Path("cache_wav/denoised/{}.wav".format(str(uuid.uuid4())))
12
+ src_path.parent.mkdir(exist_ok=True, parents=True)
13
+ tgt_path.parent.mkdir(exist_ok=True, parents=True)
14
  (ffmpeg.input(audio)
15
  .output(src_path, acodec='pcm_s16le', ac=1, ar=22050)
16
  .run()