Update infer.py

pull/3872/head
张春乔 11 months ago committed by GitHub
parent d5b0020e9a
commit fca3b80178
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -287,8 +287,8 @@ class SSLExecutor(BaseExecutor):
f"we will use the {model_type} like model to extract audio feature."
)
try:
out_feature = self.model(audio[:, :, 0])
self._outputs["result"] = out_feature[0]
out_feature = self.model.extract_features(audio[:, :, 0])
self._outputs["result"] = out_feature
except Exception as e:
logger.exception(e)

Loading…
Cancel
Save