HoneyTian commited on
Commit
71df5c3
·
1 Parent(s): 9820339
toolbox/age_and_gender/models/common_voice.py CHANGED
@@ -30,7 +30,6 @@ class CommonVoiceGenderModel(object):
30
 
31
  def predict(self, signal: np.ndarray, sample_rate: int) -> dict:
32
  y = self.processor.__call__(signal, sampling_rate=sample_rate)
33
- print(f"y: {y}")
34
  y = y["input_values"][0]
35
  y = y.reshape(1, -1)
36
  y = torch.from_numpy(y).to(self.device)
 
30
 
31
  def predict(self, signal: np.ndarray, sample_rate: int) -> dict:
32
  y = self.processor.__call__(signal, sampling_rate=sample_rate)
 
33
  y = y["input_values"][0]
34
  y = y.reshape(1, -1)
35
  y = torch.from_numpy(y).to(self.device)