Spaces:
Runtime error
Runtime error
Commit
·
0837029
1
Parent(s):
91aac10
fix app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,10 @@ from pathlib import Path
|
|
| 5 |
from denoisers.SpectralGating import SpectralGating
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
def denoising_transform(audio):
|
| 9 |
-
src_path = Path("
|
| 10 |
-
tgt_path = Path("
|
| 11 |
src_path.parent.mkdir(exist_ok=True)
|
| 12 |
tgt_path.parent.mkdir(exist_ok=True)
|
| 13 |
(ffmpeg.input(audio)
|
|
|
|
| 5 |
from denoisers.SpectralGating import SpectralGating
|
| 6 |
|
| 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)
|