modelscope/FunASR

无网环境下部署报错

wuhongsheng opened this issue · 3 comments

同问,启动时为什么连接modelscope:
/api/v1/models/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/revisions (Caused by ReadTimeoutError("HTTPSConnectionPool(host='www.modelscope.cn', port=443): Read timed out.

t41372 commented

同问,使用 Readme 上的Quick Start 例子可复现,就算模型在本地可用,依旧会因为无法访问www.modelscope.cn报错。
t

from funasr import AutoModel
model = AutoModel(model="paraformer-zh",  vad_model="fsmn-vad",  punc_model="ct-punc")

Set the model to local path dir. For more details, please ref to readme.md