AnythingV5NewUI / app.py
Yuhkil's picture
Create app.py
e241484
raw
history blame
1.04 kB
import os
os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /content/stable-diffusion-webui
%cd /content/stable-diffusion-webui
#@title Normal 1.4 model
# get a token from https://huggingface.co/settings/tokens
user_token = "" #@param {type:"string"}
user_header = f"\"Authorization: Bearer {user_token}\""
!wget --header={user_header} https://huggingface.co/nolanaatama/nythngv5/resolve/main/nythngv5.safetensors -O /content/stable-diffusion-webui/models/Stable-diffusion/anythingv5.safetensors
!COMMANDLINE_ARGS="--exit" REQS_FILE="requirements.txt" python launch.py
import os
os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
!sha1sum /content/stable-diffusion-webui/models/Stable-diffusion/anythingv5.safetensors
%cd /content/stable-diffusion-webui
!git pull
!COMMANDLINE_ARGS="--share --gradio-debug" REQS_FILE="requirements.txt" python launch.py