Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def enhance_audio(noisy_audio):
|
|
20 |
# Save enhanced audio to a temporary file
|
21 |
enhanced_path = "enhanced.wav"
|
22 |
torchaudio.save(enhanced_path, enhanced.cpu(), 16000)
|
23 |
-
|
24 |
return enhanced_path
|
25 |
|
26 |
# Create the Gradio interface
|
@@ -33,4 +33,4 @@ interface = gr.Interface(
|
|
33 |
)
|
34 |
|
35 |
# Launch the Gradio app
|
36 |
-
interface.launch()
|
|
|
20 |
# Save enhanced audio to a temporary file
|
21 |
enhanced_path = "enhanced.wav"
|
22 |
torchaudio.save(enhanced_path, enhanced.cpu(), 16000)
|
23 |
+
|
24 |
return enhanced_path
|
25 |
|
26 |
# Create the Gradio interface
|
|
|
33 |
)
|
34 |
|
35 |
# Launch the Gradio app
|
36 |
+
interface.launch()
|