Spaces:
Runtime error
Runtime error
Commit ·
424451d
1
Parent(s): ea1aca3
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,6 +80,8 @@ Gitclone(r"https://tinyurl.com/LOBE-Repo",user_home / r"stable-diffusion-webui"
|
|
| 80 |
#Gitclone(r"https://github.com/hnmr293/sd-webui-llul",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-llul")
|
| 81 |
Gitclone(r"https://github.com/IDEA-Research/DWPose",user_home / r"stable-diffusion-webui" / r"extensions" / r"DWPose")
|
| 82 |
Gitclone(r"https://github.com/Bing-su/adetailer",user_home / r"stable-diffusion-webui" / r"extensions" / r"adetailer")
|
|
|
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
#Gitclone(r"https://github.com/NoCrypt/sd_hf_out",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_hf_out")
|
|
@@ -196,12 +198,29 @@ DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv
|
|
| 196 |
#strt Stable Diffusion Webui
|
| 197 |
print("Done\nStarting Webui...")
|
| 198 |
os.chdir(user_home / r"stable-diffusion-webui")
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
del os ,user_home ,pyexecutable ,subprocess
|
|
|
|
| 80 |
#Gitclone(r"https://github.com/hnmr293/sd-webui-llul",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-llul")
|
| 81 |
Gitclone(r"https://github.com/IDEA-Research/DWPose",user_home / r"stable-diffusion-webui" / r"extensions" / r"DWPose")
|
| 82 |
Gitclone(r"https://github.com/Bing-su/adetailer",user_home / r"stable-diffusion-webui" / r"extensions" / r"adetailer")
|
| 83 |
+
Gitclone(r"https://github.com/NoCrypt/sd_hf_out",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_hf_out")
|
| 84 |
+
|
| 85 |
|
| 86 |
|
| 87 |
#Gitclone(r"https://github.com/NoCrypt/sd_hf_out",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_hf_out")
|
|
|
|
| 198 |
#strt Stable Diffusion Webui
|
| 199 |
print("Done\nStarting Webui...")
|
| 200 |
os.chdir(user_home / r"stable-diffusion-webui")
|
| 201 |
+
import subprocess
|
| 202 |
+
import pathlib
|
| 203 |
+
|
| 204 |
+
user_home = pathlib.Path("/home/user") # Gantilah dengan path yang sesuai
|
| 205 |
+
|
| 206 |
+
args = [
|
| 207 |
+
executable,
|
| 208 |
+
user_home / "stable-diffusion-webui" / "launch.py",
|
| 209 |
+
"--precision", "full",
|
| 210 |
+
"--no-half",
|
| 211 |
+
"--no-half-vae",
|
| 212 |
+
"--medvram",
|
| 213 |
+
"--skip-torch-cuda-test",
|
| 214 |
+
"--enable-console-prompts",
|
| 215 |
+
"--ui-settings-file=" + str(pathlib.Path(__file__).parent / "config.json"),
|
| 216 |
+
"--hf-token-out",
|
| 217 |
+
"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" # Gantilah dengan token yang sesuai
|
| 218 |
+
]
|
| 219 |
+
|
| 220 |
+
args = [arg.as_posix() if isinstance(arg, pathlib.PosixPath) else arg for arg in args]
|
| 221 |
+
|
| 222 |
+
try:
|
| 223 |
+
ret = subprocess.run(args)
|
| 224 |
+
except Exception as e:
|
| 225 |
+
print("Error:", e)
|
| 226 |
del os ,user_home ,pyexecutable ,subprocess
|