Spaces:
Runtime error
Runtime error
AdamOswald1
commited on
Commit
·
828b717
1
Parent(s):
c81bf89
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ elif("T4" in gpu_info):
|
|
10 |
os.system(f"git clone https://github.com/OswaldDevolpment/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/
|
14 |
os.system(f"sed -i '$a fastapi==0.94.0' /home/user/app/stable-diffusion-webui/requirements_versions.txt")
|
15 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
16 |
os.system(f"sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
@@ -24,15 +24,15 @@ 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 |
|
31 |
if "IS_SHARED_UI" in os.environ:
|
32 |
os.system(f"rm -rfv /home/user/app/stable-diffusion-webui/scripts/")
|
33 |
|
34 |
-
os.system(f"wget -q https://github.com/
|
35 |
-
os.system(f"wget -q https://github.com/
|
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')}")
|
|
|
10 |
os.system(f"git clone https://github.com/OswaldDevolpment/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/OswaldDevolpment/webuij/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
14 |
os.system(f"sed -i '$a fastapi==0.94.0' /home/user/app/stable-diffusion-webui/requirements_versions.txt")
|
15 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
16 |
os.system(f"sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.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/OswaldDevolpment/webuij/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 |
|
31 |
if "IS_SHARED_UI" in os.environ:
|
32 |
os.system(f"rm -rfv /home/user/app/stable-diffusion-webui/scripts/")
|
33 |
|
34 |
+
os.system(f"wget -q https://github.com/OswaldDevolpment/webuij/raw/main/shared-config.json -O /home/user/app/shared-config.json")
|
35 |
+
os.system(f"wget -q https://github.com/OswaldDevolpment/webuij/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')}")
|