Commit
·
d19dfdc
1
Parent(s):
d23015c
Upload extensiones.py
Browse files- extensiones.py +20 -0
extensiones.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import git
|
2 |
+
|
3 |
+
def git_clone(repo_url, destination_folder):
|
4 |
+
try:
|
5 |
+
repo = git.Repo.clone_from(repo_url, destination_folder)
|
6 |
+
print(f"Repository {repo_url} cloned successfully.")
|
7 |
+
except git.exc.GitCommandError as e:
|
8 |
+
print(f"Error cloning repository {repo_url}: {e}")
|
9 |
+
|
10 |
+
# Replace these with your desired repository URLs and destination folders
|
11 |
+
repositories = [
|
12 |
+
|
13 |
+
{"url": "https://github.com/Uminosachi/sd-webui-inpaint-anything.git", "folder": "/content/spidey/extensions/sd-webui-inpaint-anything"},
|
14 |
+
{"url": "https://github.com/continue-revolution/sd-webui-segment-anything.git", "folder": "/content/spidey/extensions/sd-webui-segment-anything"},
|
15 |
+
{"url": "https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git", "folder": "/content/spidey/extensions/sd-dynamic-thresholding"},
|
16 |
+
{"url": "https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git", "folder": "/content/spidey/extensions/stable-diffusion-webui-images-browser"},
|
17 |
+
]
|
18 |
+
|
19 |
+
for repo_info in repositories:
|
20 |
+
git_clone(repo_info["url"], repo_info["folder"])
|