TheLastBen
commited on
Commit
•
0be13db
1
Parent(s):
e14c3e8
Upload 3 files
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -41,7 +41,7 @@ def Deps(force_reinstall):
|
|
41 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
42 |
os.chdir('/notebooks')
|
43 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
44 |
-
call("pip install --root-user-action=ignore -qq gradio==3.
|
45 |
if not os.path.exists('/notebooks/diffusers'):
|
46 |
call('ln -s /diffusers /notebooks', shell=True)
|
47 |
call("rm -r /deps", shell=True)
|
|
|
41 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
42 |
os.chdir('/notebooks')
|
43 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
44 |
+
call("pip install --root-user-action=ignore -qq gradio==3.28.1", shell=True, stdout=open('/dev/null', 'w'))
|
45 |
if not os.path.exists('/notebooks/diffusers'):
|
46 |
call('ln -s /diffusers /notebooks', shell=True)
|
47 |
call("rm -r /deps", shell=True)
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -52,7 +52,7 @@ def Deps(force_reinstall):
|
|
52 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
53 |
os.chdir('/notebooks')
|
54 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
55 |
-
call("pip install --root-user-action=ignore -qq gradio==3.
|
56 |
if not os.path.exists('/notebooks/diffusers'):
|
57 |
call('ln -s /diffusers /notebooks', shell=True)
|
58 |
call("rm -r /deps", shell=True)
|
|
|
52 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
53 |
os.chdir('/notebooks')
|
54 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
55 |
+
call("pip install --root-user-action=ignore -qq gradio==3.28.1", shell=True, stdout=open('/dev/null', 'w'))
|
56 |
if not os.path.exists('/notebooks/diffusers'):
|
57 |
call('ln -s /diffusers /notebooks', shell=True)
|
58 |
call("rm -r /deps", shell=True)
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -52,7 +52,7 @@ def Deps(force_reinstall):
|
|
52 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
53 |
os.chdir('/notebooks')
|
54 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
55 |
-
call("pip install --root-user-action=ignore -qq gradio==3.
|
56 |
if not os.path.exists('/notebooks/diffusers'):
|
57 |
call('ln -s /diffusers /notebooks', shell=True)
|
58 |
call("rm -r /deps", shell=True)
|
|
|
52 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
53 |
os.chdir('/notebooks')
|
54 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
55 |
+
call("pip install --root-user-action=ignore -qq gradio==3.28.1", shell=True, stdout=open('/dev/null', 'w'))
|
56 |
if not os.path.exists('/notebooks/diffusers'):
|
57 |
call('ln -s /diffusers /notebooks', shell=True)
|
58 |
call("rm -r /deps", shell=True)
|