TheLastBen commited on
Commit
99b7330
·
1 Parent(s): a4d1680

Update Scripts/mainpaperspacev2.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspacev2.py +1 -0
Scripts/mainpaperspacev2.py CHANGED
@@ -51,6 +51,7 @@ def Deps(force_reinstall):
51
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
52
  os.chdir('/notebooks')
53
  call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
 
54
  if not os.path.exists('/notebooks/diffusers'):
55
  call('ln -s /diffusers /notebooks', shell=True)
56
  call("rm -r /deps", shell=True)
 
51
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
52
  os.chdir('/notebooks')
53
  call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
54
+ call("pip install --root-user-action=ignore -qq gradio==3.23", shell=True, stdout=open('/dev/null', 'w'))
55
  if not os.path.exists('/notebooks/diffusers'):
56
  call('ln -s /diffusers /notebooks', shell=True)
57
  call("rm -r /deps", shell=True)