args commited on
Commit
fd3599f
·
1 Parent(s): f9f0777

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -48
app.py DELETED
@@ -1,48 +0,0 @@
1
- import os
2
- os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
3
-
4
- """Clone webui repository"""
5
-
6
- # Commented out IPython magic to ensure Python compatibility.
7
- !git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /content/stable-diffusion-webui
8
- # %cd /content/stable-diffusion-webui
9
-
10
- """Download the model from huggingface.
11
- Leave the model name and link as default, unless you know what you are doing
12
-
13
- """
14
-
15
- #@title 1.3 Model
16
- model_name = "wd-v1-3-float16.ckpt" #@param {type:"string"}
17
- model_link = "https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float16.ckpt" #@param {type:"string"}
18
- !wget {model_link} -O models/Stable-diffusion/{model_name}
19
-
20
- """Install requirements, download repositories of stable diffusion"""
21
-
22
- !COMMANDLINE_ARGS="--exit" REQS_FILE="requirements.txt" python launch.py
23
-
24
- """Kill the runtime."""
25
-
26
- import os
27
- os.kill(os.getpid(), 9) # This will crash Colab (required, everything will still be intact so dont worry)
28
-
29
- """Change into Web UI directory and download updates"""
30
-
31
- # Commented out IPython magic to ensure Python compatibility.
32
- # %cd /content/stable-diffusion-webui
33
- !git pull
34
-
35
- """Launch web ui. Once it finishes launching, you will see `Running on public URL: xxxx.gradio.app`
36
-
37
- PLEASE WAIT 10 SECONDS BEFORE CLICKING THE LINK IN ORDER FOR EVERYTHING TO LOAD
38
-
39
- Click that link, and you are now using WD 1.3!
40
-
41
- Commandline arguments are:
42
- - `--share` - create online gradio.app link
43
- - `--gradio-debug` - print outputs to console
44
- - optional: `--gradio-auth me:qwerty` - add authentication to gradio: username me, password qwerty
45
- - see [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Run-with-Custom-Parameters) for more options
46
- """
47
-
48
- !COMMANDLINE_ARGS="--share --gradio-debug" REQS_FILE="requirements.txt" python launch.py