|
|
@@ -241,14 +241,6 @@ class ContextualParaformer(Paraformer):
|
|
|
):
|
|
|
|
|
|
if not Path(model_dir).exists():
|
|
|
- try:
|
|
|
- from modelscope.hub.snapshot_download import snapshot_download
|
|
|
- except:
|
|
|
- raise "You are exporting model from modelscope, please install modelscope and try it again. To install modelscope, you could:\n" \
|
|
|
- "\npip3 install -U modelscope\n" \
|
|
|
- "For the users in China, you could install with the command:\n" \
|
|
|
- "\npip3 install -U modelscope -i https://mirror.sjtu.edu.cn/pypi/web/simple"
|
|
|
-
|
|
|
try:
|
|
|
model_dir = snapshot_download(model_dir, cache_dir=cache_dir)
|
|
|
except:
|