Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ from scipy.io.wavfile import write
|
|
7 |
|
8 |
def mel_to_audio(mel_spectrogram):
|
9 |
# convert the Mel spectrogram image to a grayscale image to avoid the string indices must be integers error
|
10 |
-
mel_spectrogram = np.mean(mel_spectrogram, axis=0)
|
11 |
|
12 |
# convert the Mel spectrogram image to audio using librosa
|
13 |
# specify the data type of the output array to avoid the same_kind casting error
|
|
|
7 |
|
8 |
def mel_to_audio(mel_spectrogram):
|
9 |
# convert the Mel spectrogram image to a grayscale image to avoid the string indices must be integers error
|
|
|
10 |
|
11 |
# convert the Mel spectrogram image to audio using librosa
|
12 |
# specify the data type of the output array to avoid the same_kind casting error
|