Spaces:
Runtime error
Runtime error
Commit
·
e95cc03
1
Parent(s):
7d2f0b1
fix app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def denoising_transform(audio):
|
|
| 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()
|
| 17 |
)
|
| 18 |
model.predict(audio, tgt_path)
|
|
|
|
| 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.as_posix(), acodec='pcm_s16le', ac=1, ar=22050)
|
| 16 |
.run()
|
| 17 |
)
|
| 18 |
model.predict(audio, tgt_path)
|