Hendrik Schroeter commited on
Commit
31de2a9
1 Parent(s): f9a20e8
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def demo_fn(
124
  sample = sample[..., : max_s * sr]
125
  if sample.dim() > 1 and sample.shape[0] > 1:
126
  assert (
127
- sample.shape[1] > sample.shape[2]
128
  ), f"Expecting channels first, but got {sample.shape}"
129
  sample = sample.mean(dim=0, keepdim=True)
130
  logger.info(f"Loaded sample with shape {sample.shape}")
 
124
  sample = sample[..., : max_s * sr]
125
  if sample.dim() > 1 and sample.shape[0] > 1:
126
  assert (
127
+ sample.shape[1] > sample.shape[0]
128
  ), f"Expecting channels first, but got {sample.shape}"
129
  sample = sample.mean(dim=0, keepdim=True)
130
  logger.info(f"Loaded sample with shape {sample.shape}")