Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
|
3 |
+
|
4 |
+
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /content/stable-diffusion-webui
|
5 |
+
%cd /content/stable-diffusion-webui
|
6 |
+
|
7 |
+
#@title Normal 1.4 model
|
8 |
+
# get a token from https://huggingface.co/settings/tokens
|
9 |
+
user_token = "" #@param {type:"string"}
|
10 |
+
user_header = f"\"Authorization: Bearer {user_token}\""
|
11 |
+
!wget --header={user_header} https://huggingface.co/nolanaatama/nythngv5/resolve/main/nythngv5.safetensors -O /content/stable-diffusion-webui/models/Stable-diffusion/anythingv5.safetensors
|
12 |
+
|
13 |
+
!COMMANDLINE_ARGS="--exit" REQS_FILE="requirements.txt" python launch.py
|
14 |
+
|
15 |
+
import os
|
16 |
+
os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
|
17 |
+
|
18 |
+
!sha1sum /content/stable-diffusion-webui/models/Stable-diffusion/anythingv5.safetensors
|
19 |
+
|
20 |
+
%cd /content/stable-diffusion-webui
|
21 |
+
!git pull
|
22 |
+
|
23 |
+
!COMMANDLINE_ARGS="--share --gradio-debug" REQS_FILE="requirements.txt" python launch.py
|