hagenw commited on
Commit
610aa41
·
1 Parent(s): 963cdb8
Files changed (1) hide show
  1. app.py +2 -2
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.shape=}")
140
- if y.shape[0] == 2:
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: