Skip to content

Commit

Permalink
temporary gradio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastBen authored Jan 2, 2023
1 parent 8794988 commit cf8932a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fast_stable_diffusion_AUTOMATIC1111.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py\n",
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py\n",
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/style.css\n",
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py \n",
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py\n",
" !rm /content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui_tempdir.py # temporary gradio fix\n",
" %cd /content/gdrive/MyDrive/sd/stable-diffusion-webui/\n",
" print('\u001b[1;32m')\n",
" !git pull\n",
Expand All @@ -89,7 +90,7 @@
"import os\n",
"import time\n",
"from IPython.utils import capture\n",
"from subprocess import getoutput\n",
"from subprocess import getoutput\n",
"from IPython.display import clear_output\n",
"from re import search\n",
"\n",
Expand Down Expand Up @@ -124,9 +125,11 @@
" !wget https://github.com/TheLastBen/fast-stable-diffusion/raw/main/precompiled/A100/A100\n",
" %cd /usr/local/lib/python3.8/dist-packages/xformers\n",
" !7z x -y /content/A100\n",
" !rm /content/A100\n",
" !rm /content/A100\n",
" %cd /content/gdrive/MyDrive/sd/stable-diffusion-webui/modules\n",
" !wget -O paths.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/paths.py\n",
" !wget -O ui_tempdir.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/ui_tempdir.py # temporary gradio fix\n",
" !pip install -q gradio==3.9 # temporary gradio fix\n",
"\n",
" if os.path.exists(\"/content/gdrive/MyDrive/sd/stablediffusion/repositories/midas/midas/backbones\"):\n",
" !rm -r /content/gdrive/MyDrive/sd/stablediffusion/repositories/midas\n",
Expand Down

0 comments on commit cf8932a

Please sign in to comment.