mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
paraformer_bin bugfix
This commit is contained in:
parent
fc00476a25
commit
8745733b54
@ -322,6 +322,10 @@ class ContextualParaformer(Paraformer):
|
||||
self.pred_bias = config["model_conf"]["predictor_bias"]
|
||||
else:
|
||||
self.pred_bias = 0
|
||||
if "lang" in config:
|
||||
self.language = config["lang"]
|
||||
else:
|
||||
self.language = None
|
||||
|
||||
def __call__(
|
||||
self, wav_content: Union[str, np.ndarray, List[str]], hotwords: str, **kwargs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user