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