Spaces:
Runtime error
Runtime error
AdamOswald1
commited on
Commit
·
7788027
1
Parent(s):
c6bebc1
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ if("A10G" in gpu_info):
|
|
7 |
elif("T4" in gpu_info):
|
8 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
9 |
|
10 |
-
os.system(f"git clone
|
11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
12 |
|
13 |
os.system(f"wget -q https://github.com/AdamOswald/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
@@ -24,7 +24,7 @@ os.system(f"sed -i -e 's/ outputs=\[/queue=False, &/g' /home/user/app/stable-dif
|
|
24 |
os.system(f"sed -i -e 's/ queue=False, / /g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
25 |
|
26 |
# ----------------------------Please duplicate this space and delete this block if you don't want to see the extra header----------------------------
|
27 |
-
os.system(f"wget -q https://github.com/
|
28 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
29 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
30 |
|
@@ -35,7 +35,7 @@ if "IS_SHARED_UI" in os.environ:
|
|
35 |
os.system(f"wget -q https://github.com/AdamOswald/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
36 |
|
37 |
os.system(f"wget -q https://civitai.com/models/1493?modelVersionId=59168 -O /home/user/app/stable-diffusion-webui/models/Lora/sonicdiffusion_v3Beta3.safetensors")
|
38 |
-
# os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/
|
39 |
# os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
40 |
# os.system(f"wget -q {os.getenv('YAML_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('YAML_NAME')}")
|
41 |
|
|
|
7 |
elif("T4" in gpu_info):
|
8 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
9 |
|
10 |
+
os.system(f"git clone https://github.com/AdamOswald/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
12 |
|
13 |
os.system(f"wget -q https://github.com/AdamOswald/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
|
|
24 |
os.system(f"sed -i -e 's/ queue=False, / /g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
25 |
|
26 |
# ----------------------------Please duplicate this space and delete this block if you don't want to see the extra header----------------------------
|
27 |
+
os.system(f"wget -q https://github.com/AdamOswald/webui/raw/main/header_patch.py -O /home/user/app/header_patch.py")
|
28 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
29 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
30 |
|
|
|
35 |
os.system(f"wget -q https://github.com/AdamOswald/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
36 |
|
37 |
os.system(f"wget -q https://civitai.com/models/1493?modelVersionId=59168 -O /home/user/app/stable-diffusion-webui/models/Lora/sonicdiffusion_v3Beta3.safetensors")
|
38 |
+
# os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Lora/{os.getenv('MODEL_NAME')}")
|
39 |
# os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
40 |
# os.system(f"wget -q {os.getenv('YAML_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('YAML_NAME')}")
|
41 |
|