From b6a8655eaefcff2b91b0e720174fbfcdf7bdd270 Mon Sep 17 00:00:00 2001 From: pengzhendong <275331498@qq.com> Date: Thu, 8 Jan 2026 19:38:45 +0800 Subject: [PATCH] add different hubs usage --- README.md | 2 ++ README_zh.md | 1 + demo1.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 4ed2730..58e695a 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ def main(): trust_remote_code=True, remote_code="./model.py", device="cuda:0", + # hub:download models from ms (for ModelScope) or hf (for Hugging Face). + hub="hf" ) wav_path = f"{model.model_path}/example/zh.mp3" diff --git a/README_zh.md b/README_zh.md index a83ff49..75dc620 100644 --- a/README_zh.md +++ b/README_zh.md @@ -81,6 +81,7 @@ def main(): trust_remote_code=True, remote_code="./model.py", device="cuda:0", + hub="ms" ) wav_path = f"{model.model_path}/example/zh.mp3" diff --git a/demo1.py b/demo1.py index 19cc270..f91a07b 100644 --- a/demo1.py +++ b/demo1.py @@ -18,6 +18,8 @@ def main(): trust_remote_code=True, remote_code="./model.py", device=device, + # hub:download models from ms (for ModelScope) or hf (for Hugging Face). + hub="ms" ) wav_path = f"{model.model_path}/example/zh.mp3"