File size: 1,135 Bytes
1b3d798 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
from subprocess import getoutput
from diffusers import DiffusionPipeline
import ipywidgets as widgets
import sys
import fileinput
import os
import time
import diffusers
import requests
import transformers
from diffusers import DiffusionPipeline
os.chdir("/content/gdrive/MyDrive/")
if not os.path.exists("/content/gdrive/MyDrive/"):
!mkdir -p /content/gdrive/MyDrive/
with capture.capture_output() as cap:
def inf(msg, style, wdth): inf = widgets.Button(description=msg, disabled=True, button_style=style, layout=widgets.Layout(min_width=wdth));display(inf)
fgitclone = "git clone --depth 1"
%mkdir -p /content/gdrive/MyDrive/GenFiles/HeartOfPainting
%cd /content/
!wget -q -i https://huggingface.co/datasets/Cacau/RequestedFiles/resolve/main/requirements.txt
!dpkg -i *.deb
if not os.path.exists('/content/gdrive/MyDrive/GenFiles/HeartOfPainting'):
!tar -C / --zstd -xf sd.tar.zst
!tar -C / --zstd -xf A1111_dep.tar.zst
!rm *.deb | rm *.zst | rm *.txt
with capture.capture_output() as cap:
%cd /content/gdrive/MyDrive/GenFiles/HeartOfPainting
!git reset --hard
time.sleep(1)
!rm webui.sh
!git pull |