Spaces:
Runtime error
Runtime error
r0seyyyd33p
commited on
Commit
•
8098a2c
1
Parent(s):
dcdc555
Upload app.py
Browse files
app.py
CHANGED
@@ -40,13 +40,11 @@ os.chdir(str(user_home))
|
|
40 |
#clone stable-diffusion-webui repo
|
41 |
print("cloning stable-diffusion-webui repo")
|
42 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
|
43 |
-
subprocess.run([r"pip install -U pip && pip install -U httpcore"])
|
44 |
os.chdir(str(user_home / r"stable-diffusion-webui"))
|
45 |
os.system("git reset --hard "+commit_id)
|
46 |
#install extensions
|
47 |
print("installing extensions")
|
48 |
-
Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
|
49 |
-
Gitclone(r"https://huggingface.co/embed/lora",user_home / r"stable-diffusion-webui" / r"models" / r"Lora" / r"positive")
|
50 |
DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN" ,r"4x-UltraSharp.pth")
|
51 |
while (True):
|
52 |
i=subprocess.run([r"wget",r"https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py",r"-O",str(user_home / r"stable-diffusion-webui" / r"scripts" / r"run_n_times.py")])
|
|
|
40 |
#clone stable-diffusion-webui repo
|
41 |
print("cloning stable-diffusion-webui repo")
|
42 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
|
43 |
+
subprocess.run([r"pip", r"install", r"-U", r"pip", r"&&", r"pip", r"install", r"-U", r"httpcore==0.24.1"])
|
44 |
os.chdir(str(user_home / r"stable-diffusion-webui"))
|
45 |
os.system("git reset --hard "+commit_id)
|
46 |
#install extensions
|
47 |
print("installing extensions")
|
|
|
|
|
48 |
DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN" ,r"4x-UltraSharp.pth")
|
49 |
while (True):
|
50 |
i=subprocess.run([r"wget",r"https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py",r"-O",str(user_home / r"stable-diffusion-webui" / r"scripts" / r"run_n_times.py")])
|