mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
empty result bug fix
This commit is contained in:
parent
fa215038e7
commit
dee1354d0d
@ -417,7 +417,7 @@ class AutoModel:
|
||||
return_raw_text = kwargs.get('return_raw_text', False)
|
||||
# step.3 compute punc model
|
||||
if self.punc_model is not None:
|
||||
if not len(result["text"]):
|
||||
if not len(result["text"].strip()):
|
||||
if return_raw_text:
|
||||
result['raw_text'] = ''
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user