Gregniuki commited on
Commit
9155aaa
·
1 Parent(s): 23bf702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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(