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