Spaces:
Running
on
A10G
Running
on
A10G
darkstorm2150
commited on
Commit
•
f4cab5f
1
Parent(s):
4c661d1
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
import os
|
2 |
from subprocess import getoutput
|
3 |
|
|
|
|
|
4 |
gpu_info = getoutput('nvidia-smi')
|
5 |
if("A10G" in gpu_info):
|
6 |
-
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.
|
7 |
elif("T4" in gpu_info):
|
8 |
-
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.
|
9 |
|
10 |
os.system(f"git clone -b v1.5 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
|
|
1 |
import os
|
2 |
from subprocess import getoutput
|
3 |
|
4 |
+
pip install --upgrade pip
|
5 |
+
|
6 |
gpu_info = getoutput('nvidia-smi')
|
7 |
if("A10G" in gpu_info):
|
8 |
+
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230119.A10G-cp310-cp310-linux_x86_64.whl")
|
9 |
elif("T4" in gpu_info):
|
10 |
+
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230119.A10G-cp310-cp310-linux_x86_64.whl")
|
11 |
|
12 |
os.system(f"git clone -b v1.5 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
13 |
os.chdir("/home/user/app/stable-diffusion-webui")
|