Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -403,6 +403,7 @@ def inferencing(model, config, sid, line, length_scale, noise_scale, noise_scale
|
|
403 |
temp_audio_path = os.path.join(tempfile.gettempdir(), "generated_audio.wav")
|
404 |
sf.write(temp_audio_path, merged_audio, config["audio"]["sample_rate"])
|
405 |
audio = AudioSegment.from_mp3(temp_audio_path)
|
|
|
406 |
return audio
|
407 |
|
408 |
def denoise(
|
|
|
403 |
temp_audio_path = os.path.join(tempfile.gettempdir(), "generated_audio.wav")
|
404 |
sf.write(temp_audio_path, merged_audio, config["audio"]["sample_rate"])
|
405 |
audio = AudioSegment.from_mp3(temp_audio_path)
|
406 |
+
os.remove(temp_audio_path)
|
407 |
return audio
|
408 |
|
409 |
def denoise(
|