Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import torch
|
| 2 |
-
import
|
| 3 |
import gradio as gr
|
| 4 |
from clearvoice import ClearVoice
|
| 5 |
|
|
@@ -19,7 +19,7 @@ def fn_clearvoice(aud):
|
|
| 19 |
output_wav = output_wav_dict[key]
|
| 20 |
else:
|
| 21 |
output_wav = output_wav_dict
|
| 22 |
-
|
| 23 |
return 'enhanced.wav'
|
| 24 |
|
| 25 |
inputs = gr.Audio(sources=["upload"], label="Input Audio", type="filepath")
|
|
|
|
| 1 |
import torch
|
| 2 |
+
import soundfile as sf
|
| 3 |
import gradio as gr
|
| 4 |
from clearvoice import ClearVoice
|
| 5 |
|
|
|
|
| 19 |
output_wav = output_wav_dict[key]
|
| 20 |
else:
|
| 21 |
output_wav = output_wav_dict
|
| 22 |
+
sf.write('enhanced.wav', output_wav, 16000)
|
| 23 |
return 'enhanced.wav'
|
| 24 |
|
| 25 |
inputs = gr.Audio(sources=["upload"], label="Input Audio", type="filepath")
|