Spaces:
Sleeping
Sleeping
Update inference_from_video.py
Browse files- inference_from_video.py +2 -2
inference_from_video.py
CHANGED
@@ -191,8 +191,8 @@ def main():
|
|
191 |
wave = vae.decode_to_waveform(mel)
|
192 |
|
193 |
# Ensure the waveform is exactly 8 seconds long
|
194 |
-
|
195 |
-
wave = [wav[:
|
196 |
|
197 |
all_outputs += [item for item in wave]
|
198 |
|
|
|
191 |
wave = vae.decode_to_waveform(mel)
|
192 |
|
193 |
# Ensure the waveform is exactly 8 seconds long
|
194 |
+
num_samples_n_seconds = sample_rate * max_len_in_seconds
|
195 |
+
wave = [wav[:num_samples_n_seconds] for wav in wave]
|
196 |
|
197 |
all_outputs += [item for item in wave]
|
198 |
|