Skip to content

Commit

Permalink
Make it possible to save extensions to Google Drive.
Browse files Browse the repository at this point in the history
However, this is deprecated.
  • Loading branch information
ddPn08 committed Jan 14, 2023
1 parent c4c357a commit b602670
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions automatic1111.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@
"extensions = \"https://github.com/yfszzx/stable-diffusion-webui-images-browser, https://github.com/DominikDoom/a1111-sd-webui-tagcomplete\" # @param {type:\"string\"}\n",
"extensions = list(map(str.strip, extensions.split(\",\")))\n",
"\n",
"# @markdown  \n",
"# @markdown ## Save extensions to Google Drive\n",
"# @markdown **Deprecated** (Unexpected errors may occur)\n",
"save_extensions_to_gdrive = False # @param {type:\"boolean\"}\n",
"\n",
"if save_extensions_to_gdrive:\n",
" ! rm -Rf stable-diffusion-webui/extensions && ln -s {data_dir}/extensions stable-diffusion-webui/extensions\n",
"\n",
"if load_extensions_from_gdrive and extensions_file_path:\n",
" if os.path.exists(extensions_file_path):\n",
" with open(extensions_file_path, mode=\"r\") as f:\n",
Expand Down

0 comments on commit b602670

Please sign in to comment.