Update app.py
Browse files
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 |
-
|
|
|
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
|