Spaces:
Build error
Build error
Hendrik Schroeter commited on
fix mono
Browse files123 unmodified lines124125126127128129130123 unmodified linessample = sample[..., : max_s * sr]if sample.dim() > 1 and sample.shape[0] > 1:assert (sample.shape[1] > sample.shape[2]), f"Expecting channels first, but got {sample.shape}"sample = sample.mean(dim=0, keepdim=True)logger.info(f"Loaded sample with shape {sample.shape}")123 unmodified lines124125126127128129130123 unmodified linessample = sample[..., : max_s * sr]if sample.dim() > 1 and sample.shape[0] > 1:assert (sample.shape[1] > sample.shape[0]), f"Expecting channels first, but got {sample.shape}"sample = sample.mean(dim=0, keepdim=True)logger.info(f"Loaded sample with shape {sample.shape}")
app.py+1-1