stlaurentjr commited on
Commit
b152bf7
1 Parent(s): d2d9547

Update scripts/mainrunpodA1111.py

Browse files
Files changed (1) hide show
  1. scripts/mainrunpodA1111.py +2 -2
scripts/mainrunpodA1111.py CHANGED
@@ -42,14 +42,14 @@ def Deps(force_reinstall):
42
  call("rm -r deps", shell=True)
43
  if os.path.exists('diffusers'):
44
  call("rm -r diffusers", shell=True)
 
 
45
  if not os.path.exists('deps'):
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)
 
42
  call("rm -r deps", shell=True)
43
  if os.path.exists('diffusers'):
44
  call("rm -r diffusers", shell=True)
45
+ if not os.path.exists('cache'):
46
+ call('mkdir cache', shell=True)
47
  if not os.path.exists('deps'):
48
  call('mkdir deps', shell=True)
49
  os.chdir('deps')
50
  dwn("https://huggingface.co/spaces/stlaurentjr/RNPD/resolve/main/deps/rnpddeps-t2.tar.zst", "/workspace/deps/rnpddeps-t2.tar.zst", "Installing dependencies")
51
  else:
52
  os.chdir('deps')
 
 
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)