Spaces:
Running
Running
Commit
·
03fdd22
1
Parent(s):
e61f78b
Update scripts/mainrunpodA1111.py
Browse files
scripts/mainrunpodA1111.py
CHANGED
@@ -46,10 +46,11 @@ def Deps(force_reinstall):
|
|
46 |
call('mkdir deps', shell=True)
|
47 |
os.chdir('deps')
|
48 |
dwn("https://huggingface.co/spaces/stlaurentjr/RNPD/resolve/main/deps/rnpddeps-t2.tar.zst", "/workspace/deps/rnpddeps-t2.tar.zst", "Installing dependencies")
|
|
|
|
|
49 |
if not os.path.exists('cache'):
|
50 |
-
call('mkdir cache', shell=True)
|
51 |
-
|
52 |
-
|
53 |
call('tar -C / --zstd -xf rnpddeps-t2.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
54 |
call("sed -i 's@~/.cache@/workspace/cache@' /usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py", shell=True)
|
55 |
os.chdir('/workspace')
|
|
|
46 |
call('mkdir deps', shell=True)
|
47 |
os.chdir('deps')
|
48 |
dwn("https://huggingface.co/spaces/stlaurentjr/RNPD/resolve/main/deps/rnpddeps-t2.tar.zst", "/workspace/deps/rnpddeps-t2.tar.zst", "Installing dependencies")
|
49 |
+
else:
|
50 |
+
os.chdir('deps')
|
51 |
if not os.path.exists('cache'):
|
52 |
+
call('mkdir cache', shell=True)
|
53 |
+
|
|
|
54 |
call('tar -C / --zstd -xf rnpddeps-t2.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
55 |
call("sed -i 's@~/.cache@/workspace/cache@' /usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py", shell=True)
|
56 |
os.chdir('/workspace')
|