Spaces:
Sleeping
Sleeping
santiviquez
commited on
Commit
•
eca2ad1
1
Parent(s):
9820ef7
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ if audio_bytes:
|
|
77 |
)
|
78 |
|
79 |
waveform = np.array(decoded_audio.samples)
|
80 |
-
waveform = fix_length(waveform, 5 * RATE)
|
81 |
waveform = torch.FloatTensor(waveform)
|
82 |
|
83 |
x_mel = transforms.MelSpectrogram(sample_rate=RATE, n_fft=1024, n_mels=60)(waveform)
|
|
|
77 |
)
|
78 |
|
79 |
waveform = np.array(decoded_audio.samples)
|
80 |
+
waveform = fix_length(waveform, size=5 * RATE)
|
81 |
waveform = torch.FloatTensor(waveform)
|
82 |
|
83 |
x_mel = transforms.MelSpectrogram(sample_rate=RATE, n_fft=1024, n_mels=60)(waveform)
|