fffiloni commited on
Commit
6800bce
1 Parent(s): a9ed4ef

Update inference_from_video.py

Browse files
Files changed (1) hide show
  1. 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
- num_samples_8_seconds = sample_rate * max_len_in_seconds
195
- wave = [wav[:num_samples_8_seconds] for wav in wave]
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