Spaces:
Running
Running
DEBUG
Browse files
app.py
CHANGED
|
@@ -136,8 +136,8 @@ def process_func(x: np.ndarray, sampling_rate: int) -> dict:
|
|
| 136 |
# run through model
|
| 137 |
with torch.no_grad():
|
| 138 |
y = model(y)
|
| 139 |
-
print(f"{y
|
| 140 |
-
if y
|
| 141 |
# Age-gender model
|
| 142 |
y = torch.hstack([y[1], y[2]])
|
| 143 |
else:
|
|
|
|
| 136 |
# run through model
|
| 137 |
with torch.no_grad():
|
| 138 |
y = model(y)
|
| 139 |
+
print(f"{len(y)=}")
|
| 140 |
+
if len(y) == 2:
|
| 141 |
# Age-gender model
|
| 142 |
y = torch.hstack([y[1], y[2]])
|
| 143 |
else:
|