TheLastBen
commited on
Commit
·
6b35131
1
Parent(s):
9b4c289
Upload 4 files
Browse files- Scripts/mainpaperspaceA1111.py +1 -1
- Scripts/mainpaperspacev1.py +1 -1
- Scripts/mainpaperspacev2.py +1 -1
- Scripts/sdxllorapps.py +1 -1
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -51,7 +51,7 @@ def Deps(force_reinstall):
|
|
51 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
52 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
53 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
54 |
-
|
55 |
if not os.path.exists('/notebooks/diffusers'):
|
56 |
call('ln -s /diffusers /notebooks', shell=True)
|
57 |
call("rm -r /deps", shell=True)
|
|
|
51 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
52 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
53 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
54 |
+
call('pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2', 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)
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -65,7 +65,7 @@ def Deps(force_reinstall):
|
|
65 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
66 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
67 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
68 |
-
|
69 |
if not os.path.exists('/notebooks/diffusers'):
|
70 |
call('ln -s /diffusers /notebooks', shell=True)
|
71 |
call("rm -r /deps", shell=True)
|
|
|
65 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
66 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
67 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
68 |
+
call('pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2', shell=True, stdout=open('/dev/null', 'w'))
|
69 |
if not os.path.exists('/notebooks/diffusers'):
|
70 |
call('ln -s /diffusers /notebooks', shell=True)
|
71 |
call("rm -r /deps", shell=True)
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -66,7 +66,7 @@ def Deps(force_reinstall):
|
|
66 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
67 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
68 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
69 |
-
|
70 |
if not os.path.exists('/notebooks/diffusers'):
|
71 |
call('ln -s /diffusers /notebooks', shell=True)
|
72 |
call("rm -r /deps", shell=True)
|
|
|
66 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
67 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
68 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
69 |
+
call('pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2', shell=True, stdout=open('/dev/null', 'w'))
|
70 |
if not os.path.exists('/notebooks/diffusers'):
|
71 |
call('ln -s /diffusers /notebooks', shell=True)
|
72 |
call("rm -r /deps", shell=True)
|
Scripts/sdxllorapps.py
CHANGED
@@ -68,7 +68,7 @@ def Deps(force_reinstall):
|
|
68 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
69 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
70 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
71 |
-
|
72 |
if not os.path.exists('/notebooks/diffusers'):
|
73 |
call('ln -s /diffusers /notebooks', shell=True)
|
74 |
call("rm -r /deps", shell=True)
|
|
|
68 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
69 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
70 |
call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
|
71 |
+
call('pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2', shell=True, stdout=open('/dev/null', 'w'))
|
72 |
if not os.path.exists('/notebooks/diffusers'):
|
73 |
call('ln -s /diffusers /notebooks', shell=True)
|
74 |
call("rm -r /deps", shell=True)
|