Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
-
import
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
1 |
+
import os
|
2 |
+
from subprocess import getoutput
|
3 |
|
4 |
+
gpu_info = getoutput('nvidia-smi')
|
5 |
+
os.system(f"pip install -q triton==2.0.0.dev20221120")
|
6 |
+
if("A10G" in gpu_info):
|
7 |
+
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+4c06c79.d20221205-cp38-cp38-linux_x86_64.whl")
|
8 |
+
elif("T4" in gpu_info):
|
9 |
+
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
10 |
|
11 |
+
os.system(
|
12 |
+
f"git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|