更新G2PWModel下载链接 (#2219)

* update G2PWModel download url

* update G2PWModel download url
This commit is contained in:
KamioRinn
2025-03-26 14:35:52 +08:00
committed by GitHub
parent 7394dc7b0c
commit 265586990c
6 changed files with 11 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ def download_and_decompress(model_dir: str='G2PWModel/'):
extract_dir = os.path.join(parent_directory,"G2PWModel_1.1")
extract_dir_new = os.path.join(parent_directory,"G2PWModel")
print("Downloading g2pw model...")
modelscope_url = "https://paddlespeech.bj.bcebos.com/Parakeet/released_models/g2p/G2PWModel_1.1.zip"
modelscope_url = "https://paddlespeech.cdn.bcebos.com/Parakeet/released_models/g2p/G2PWModel_1.1.zip"
with requests.get(modelscope_url, stream=True) as r:
r.raise_for_status()
with open(zip_dir, 'wb') as f: