Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
def clone_repo(repo_url, clone_path):
|
4 |
+
try:
|
5 |
+
# 调用 git clone 命令
|
6 |
+
result = subprocess.run(['git', 'clone', repo_url, clone_path], check=True)
|
7 |
+
print(f"Repository cloned successfully to {clone_path}")
|
8 |
+
except subprocess.CalledProcessError as e:
|
9 |
+
print(f"Error cloning repository: {e}")
|
10 |
+
|
11 |
+
# 示例仓库 URL 和克隆路径
|
12 |
+
repo_url = 'https://github.com/FunAudioLLM/CosyVoice.git'
|
13 |
+
clone_path = 'cloned_repo'
|
14 |
+
|
15 |
+
clone_repo(repo_url, clone_path)
|