Drditone commited on
Commit
436d1f9
·
verified ·
1 Parent(s): 481638f

Update extensions_colab.py

Browse files
Files changed (1) hide show
  1. extensions_colab.py +30 -30
extensions_colab.py CHANGED
@@ -1,30 +1,30 @@
1
- import os
2
-
3
- def clone_repo(url, save_path):
4
- command = f'git clone {url} {save_path}'
5
- os.system(command)
6
- print(f"Repository cloned: {save_path}")
7
-
8
- # 複数のURLリスト
9
- urls = [
10
- "https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards",
11
- "https://github.com/adieyal/sd-dynamic-prompts",
12
- "https://github.com/Physton/sd-webui-prompt-all-in-one",
13
- "https://github.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-ja_JP"
14
- ]
15
-
16
- # 対応するファイル名リスト
17
- file_names = [
18
- "stable-diffusion-webui-wildcards",
19
- "sd-dynamic-prompts",
20
- "sd-webui-prompt-all-in-one",
21
- "stable-diffusion-webui-localization-ja_JP"
22
- ]
23
-
24
- # 保存先ディレクトリ
25
- save_directory = "/content/ReForge/extensions"
26
-
27
- # 各URLからリポジトリをクローン
28
- for url, file_name in zip(urls, file_names):
29
- save_path = os.path.join(save_directory, file_name)
30
- clone_repo(url, save_path)
 
1
+ import os
2
+
3
+ def clone_repo(url, save_path):
4
+ command = f'git clone {url} {save_path}'
5
+ os.system(command)
6
+ print(f"Repository cloned: {save_path}")
7
+
8
+ # 複数のURLリスト
9
+ urls = [
10
+ "https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards",
11
+ "https://github.com/adieyal/sd-dynamic-prompts",
12
+ #"https://github.com/Physton/sd-webui-prompt-all-in-one",
13
+ "https://github.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-ja_JP"
14
+ ]
15
+
16
+ # 対応するファイル名リスト
17
+ file_names = [
18
+ "stable-diffusion-webui-wildcards",
19
+ "sd-dynamic-prompts",
20
+ #"sd-webui-prompt-all-in-one",
21
+ "stable-diffusion-webui-localization-ja_JP"
22
+ ]
23
+
24
+ # 保存先ディレクトリ
25
+ save_directory = "/content/ReForge/extensions"
26
+
27
+ # 各URLからリポジトリをクローン
28
+ for url, file_name in zip(urls, file_names):
29
+ save_path = os.path.join(save_directory, file_name)
30
+ clone_repo(url, save_path)