Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,8 @@ 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")
|
13 |
-
os.system("/home/user/app/stable-diffusion-webui/webui.sh")
|
|
|
3 |
|
4 |
gpu_info = getoutput('nvidia-smi')
|
5 |
os.system(f"pip install -q triton==2.0.0.dev20221120")
|
6 |
+
printf(gpu_info)
|
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.15/xformers-0.0.15.dev0+4c06c79.d20221205-cp38-cp38-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.15/xformers-0.0.15.dev0+1515f77.d20221130-cp38-cp38-linux_x86_64.whl")
|
|
|
|
|
|
|
|