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