| funasr/bin/asr_inference_paraformer.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
funasr/bin/asr_inference_paraformer.py
@@ -337,7 +337,7 @@ # assert check_return_type(results) return results class Speech2TextExport(torch.nn.Module): class Speech2TextExport: """Speech2TextExport class """ @@ -416,7 +416,7 @@ self.asr_model = model @torch.no_grad() def forward( def __call__( self, speech: Union[torch.Tensor, np.ndarray], speech_lengths: Union[torch.Tensor, np.ndarray] = None ): """Inference