Spaces:
Running
Running
stlaurentjr
commited on
Commit
•
9da0c77
1
Parent(s):
0c440db
Update scripts/mainrunpodA1111.py
Browse files- scripts/mainrunpodA1111.py +10 -6
scripts/mainrunpodA1111.py
CHANGED
@@ -27,11 +27,11 @@ def Deps(force_reinstall):
|
|
27 |
import venv
|
28 |
|
29 |
venv_dir = '/workspace/venv'
|
30 |
-
activate_script = os.path.join(venv_dir, 'bin', 'activate')
|
31 |
|
32 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.10/dist-packages/safetensors'):
|
33 |
# Активация виртуального окружения и обновление pip
|
34 |
-
call(f'/bin/bash -c "source {activate_script} && pip install --upgrade pip"', shell=True)
|
35 |
|
36 |
ntbks()
|
37 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
@@ -106,10 +106,14 @@ def Deps(force_reinstall):
|
|
106 |
os.chdir('/workspace')
|
107 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
108 |
|
109 |
-
call(f'/bin/bash -c "source {activate_script} && pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2"', shell=True)
|
110 |
-
call(f'/bin/bash -c "source {activate_script} && pip install fastapi==0.87.0 onnxruntime==1.13.1 scipy==1.9.3 uvicorn==0.20.0"', shell=True)
|
111 |
-
call(f'/bin/bash -c "source {activate_script} && pip install rembg==2.0.30"', shell=True)
|
112 |
-
|
|
|
|
|
|
|
|
|
113 |
|
114 |
os.environ['TORCH_HOME'] = '/workspace/cache/torch'
|
115 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|
|
|
27 |
import venv
|
28 |
|
29 |
venv_dir = '/workspace/venv'
|
30 |
+
#activate_script = os.path.join(venv_dir, 'bin', 'activate')
|
31 |
|
32 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.10/dist-packages/safetensors'):
|
33 |
# Активация виртуального окружения и обновление pip
|
34 |
+
#call(f'/bin/bash -c "source {activate_script} && pip install --upgrade pip"', shell=True)
|
35 |
|
36 |
ntbks()
|
37 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
|
|
106 |
os.chdir('/workspace')
|
107 |
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
108 |
|
109 |
+
#call(f'/bin/bash -c "source {activate_script} && pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2"', shell=True)
|
110 |
+
#call(f'/bin/bash -c "source {activate_script} && pip install fastapi==0.87.0 onnxruntime==1.13.1 scipy==1.9.3 uvicorn==0.20.0"', shell=True)
|
111 |
+
#call(f'/bin/bash -c "source {activate_script} && pip install rembg==2.0.30"', shell=True)
|
112 |
+
|
113 |
+
call(f'pip install --root-user-action=ignore --disable-pip-version-check -qq gradio==3.41.2"', shell=True)
|
114 |
+
call(f'pip install fastapi==0.87.0 onnxruntime==1.13.1 scipy==1.9.3 uvicorn==0.20.0"', shell=True)
|
115 |
+
call(f'pip install rembg==2.0.30"', shell=True)
|
116 |
+
#call("rm -r deps", shell=True)
|
117 |
|
118 |
os.environ['TORCH_HOME'] = '/workspace/cache/torch'
|
119 |
os.environ['PYTHONWARNINGS'] = 'ignore'
|