NagisaNao commited on
Commit
e1bf998
·
verified ·
1 Parent(s): b8ecd45
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -199,18 +199,24 @@
199
  "\n",
200
  "\n",
201
  "# === FIXING ERRORS ===\n",
202
- "# --- Encrypt-Image ---\n",
203
- "!sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
204
  "\n",
205
- "# --- SageMaker ---\n",
206
- "if env == \"SageMaker Studio Lab\":\n",
207
- " with capture.capture_output() as cap:\n",
208
- " # --- SuperMerger Remove ---\n",
209
- " if os.path.exists(f\"{webui_path}/extensions/supermerger\"):\n",
210
- " !rm -rf {webui_path}/extensions/supermerger\n",
211
- " # --- Launch (Style) ---\n",
212
- " !wget -O {webui_path}/modules/styles.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/webui/styles.py\n",
213
- " del cap\n",
 
 
 
 
 
 
 
214
  "\n",
215
  "\n",
216
  "## Version switching\n",
 
199
  "\n",
200
  "\n",
201
  "# === FIXING ERRORS ===\n",
202
+ "anxety_repos = \"https://huggingface.co/NagisaNao/fast_repo/resolve/main\"\n",
 
203
  "\n",
204
+ "with capture.capture_output() as cap:\n",
205
+ " # --- Encrypt-Image ---\n",
206
+ " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
207
+ "\n",
208
+ " # --- Additional-Networks ---\n",
209
+ " !wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py\n",
210
+ "\n",
211
+ " # --= SageMaker =--\n",
212
+ " if env == \"SageMaker Studio Lab\":\n",
213
+ " with capture.capture_output() as cap:\n",
214
+ " # --- SuperMerger Remove ---\n",
215
+ " if os.path.exists(f\"{webui_path}/extensions/supermerger\"):\n",
216
+ " !rm -rf {webui_path}/extensions/supermerger\n",
217
+ " # --- Launch (Style) ---\n",
218
+ " !wget -O {webui_path}/modules/styles.py {anxety_repos}/sagemaker/fixing/webui/styles.py\n",
219
+ "del cap\n",
220
  "\n",
221
  "\n",
222
  "## Version switching\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -199,18 +199,24 @@
199
  "\n",
200
  "\n",
201
  "# === FIXING ERRORS ===\n",
202
- "# --- Encrypt-Image ---\n",
203
- "!sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
204
  "\n",
205
- "# --- SageMaker ---\n",
206
- "if env == \"SageMaker Studio Lab\":\n",
207
- " with capture.capture_output() as cap:\n",
208
- " # --- SuperMerger Remove ---\n",
209
- " if os.path.exists(f\"{webui_path}/extensions/supermerger\"):\n",
210
- " !rm -rf {webui_path}/extensions/supermerger\n",
211
- " # --- Launch (Style) ---\n",
212
- " !wget -O {webui_path}/modules/styles.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/webui/styles.py\n",
213
- " del cap\n",
 
 
 
 
 
 
 
214
  "\n",
215
  "\n",
216
  "## Version switching\n",
 
199
  "\n",
200
  "\n",
201
  "# === FIXING ERRORS ===\n",
202
+ "anxety_repos = \"https://huggingface.co/NagisaNao/fast_repo/resolve/main\"\n",
 
203
  "\n",
204
+ "with capture.capture_output() as cap:\n",
205
+ " # --- Encrypt-Image ---\n",
206
+ " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
207
+ "\n",
208
+ " # --- Additional-Networks ---\n",
209
+ " !wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py\n",
210
+ "\n",
211
+ " # --= SageMaker =--\n",
212
+ " if env == \"SageMaker Studio Lab\":\n",
213
+ " with capture.capture_output() as cap:\n",
214
+ " # --- SuperMerger Remove ---\n",
215
+ " if os.path.exists(f\"{webui_path}/extensions/supermerger\"):\n",
216
+ " !rm -rf {webui_path}/extensions/supermerger\n",
217
+ " # --- Launch (Style) ---\n",
218
+ " !wget -O {webui_path}/modules/styles.py {anxety_repos}/sagemaker/fixing/webui/styles.py\n",
219
+ "del cap\n",
220
  "\n",
221
  "\n",
222
  "## Version switching\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -180,18 +180,24 @@ if latest_webui or latest_exstensions:
180
 
181
 
182
  # === FIXING ERRORS ===
183
- # --- Encrypt-Image ---
184
- get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
185
 
186
- # --- SageMaker ---
187
- if env == "SageMaker Studio Lab":
188
- with capture.capture_output() as cap:
189
- # --- SuperMerger Remove ---
190
- if os.path.exists(f"{webui_path}/extensions/supermerger"):
191
- get_ipython().system('rm -rf {webui_path}/extensions/supermerger')
192
- # --- Launch (Style) ---
193
- get_ipython().system('wget -O {webui_path}/modules/styles.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/webui/styles.py')
194
- del cap
 
 
 
 
 
 
 
195
 
196
 
197
  ## Version switching
 
180
 
181
 
182
  # === FIXING ERRORS ===
183
+ anxety_repos = "https://huggingface.co/NagisaNao/fast_repo/resolve/main"
 
184
 
185
+ with capture.capture_output() as cap:
186
+ # --- Encrypt-Image ---
187
+ get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
188
+
189
+ # --- Additional-Networks ---
190
+ get_ipython().system('wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py')
191
+
192
+ # --= SageMaker =--
193
+ if env == "SageMaker Studio Lab":
194
+ with capture.capture_output() as cap:
195
+ # --- SuperMerger Remove ---
196
+ if os.path.exists(f"{webui_path}/extensions/supermerger"):
197
+ get_ipython().system('rm -rf {webui_path}/extensions/supermerger')
198
+ # --- Launch (Style) ---
199
+ get_ipython().system('wget -O {webui_path}/modules/styles.py {anxety_repos}/sagemaker/fixing/webui/styles.py')
200
+ del cap
201
 
202
 
203
  ## Version switching
files_cells/python/ru/downloading_ru.py CHANGED
@@ -180,18 +180,24 @@ if latest_webui or latest_exstensions:
180
 
181
 
182
  # === FIXING ERRORS ===
183
- # --- Encrypt-Image ---
184
- get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
185
 
186
- # --- SageMaker ---
187
- if env == "SageMaker Studio Lab":
188
- with capture.capture_output() as cap:
189
- # --- SuperMerger Remove ---
190
- if os.path.exists(f"{webui_path}/extensions/supermerger"):
191
- get_ipython().system('rm -rf {webui_path}/extensions/supermerger')
192
- # --- Launch (Style) ---
193
- get_ipython().system('wget -O {webui_path}/modules/styles.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/webui/styles.py')
194
- del cap
 
 
 
 
 
 
 
195
 
196
 
197
  ## Version switching
 
180
 
181
 
182
  # === FIXING ERRORS ===
183
+ anxety_repos = "https://huggingface.co/NagisaNao/fast_repo/resolve/main"
 
184
 
185
+ with capture.capture_output() as cap:
186
+ # --- Encrypt-Image ---
187
+ get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
188
+
189
+ # --- Additional-Networks ---
190
+ get_ipython().system('wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py')
191
+
192
+ # --= SageMaker =--
193
+ if env == "SageMaker Studio Lab":
194
+ with capture.capture_output() as cap:
195
+ # --- SuperMerger Remove ---
196
+ if os.path.exists(f"{webui_path}/extensions/supermerger"):
197
+ get_ipython().system('rm -rf {webui_path}/extensions/supermerger')
198
+ # --- Launch (Style) ---
199
+ get_ipython().system('wget -O {webui_path}/modules/styles.py {anxety_repos}/sagemaker/fixing/webui/styles.py')
200
+ del cap
201
 
202
 
203
  ## Version switching