nakas commited on
Commit
d6d39f0
1 Parent(s): b5b432f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ def mel_to_audio(mel_spectrogram):
13
  audio = librosa.feature.inverse.mel_to_audio(mel_spectrogram, dtype=np.float64)
14
  # Save the audio to a file
15
  output = 'output.wav'
16
- librosa.output.write_wav(output, audio, 44100)
 
17
  return output
18
 
19
  # create the gradio app
 
13
  audio = librosa.feature.inverse.mel_to_audio(mel_spectrogram, dtype=np.float64)
14
  # Save the audio to a file
15
  output = 'output.wav'
16
+ sample = 44100
17
+ librosa.output.write_wav(output, audio, sample)
18
  return output
19
 
20
  # create the gradio app