Create repositories.py
Browse files- repositories.py +15 -0
repositories.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
urls = [
|
| 4 |
+
'https://github.com/isl-org/MiDaS',
|
| 5 |
+
'https://github.com/sczhou/CodeFormer',
|
| 6 |
+
'https://github.com/crowsonkb/k-diffusion'
|
| 7 |
+
]
|
| 8 |
+
|
| 9 |
+
for url in urls:
|
| 10 |
+
# Clone the repository
|
| 11 |
+
result = subprocess.run(['git', 'clone', url], capture_output=True, text=True)
|
| 12 |
+
if result.returncode == 0:
|
| 13 |
+
print(f"Successfully cloned {url}")
|
| 14 |
+
else:
|
| 15 |
+
print(f"Failed to clone {url}. Error: {result.stderr}")
|