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

fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ from denoisers.SpectralGating import SpectralGating
7
 
8
 
9
  def denoising_transform(audio):
10
- src_path = Path(__file__).parent / Path("cache_wav/original/{}.wav".format(str(uuid.uuid4())))
11
- tgt_path = Path(__file__).parent / 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)
 
7
 
8
 
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)