Spaces:
Running
Running
Hendrik Schroeter
commited on
fix mono
Browse files
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[
|
| 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}")
|