File size: 491 Bytes
3c7f4b2 89cc091 3c7f4b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import subprocess
def clone_repo(repo_url, clone_path):
try:
# 调用 git clone 命令
result = subprocess.run(['git', 'clone', repo_url, clone_path], check=True)
print(f"Repository cloned successfully to {clone_path}")
except subprocess.CalledProcessError as e:
print(f"Error cloning repository: {e}")
# 示例仓库 URL 和克隆路径
repo_url = 'https://github.com/FunAudioLLM/CosyVoice.git'
clone_path = 'use1'
clone_repo(repo_url, clone_path) |