Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ from subprocess import getoutput
|
|
3 |
|
4 |
gpu_info = getoutput('nvidia-smi')
|
5 |
if("A10G" in gpu_info):
|
6 |
-
os.system(f"pip install -q
|
7 |
elif("T4" in gpu_info):
|
8 |
-
os.system(f"pip install -q
|
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")
|
|
|
3 |
|
4 |
gpu_info = getoutput('nvidia-smi')
|
5 |
if("A10G" in gpu_info):
|
6 |
+
os.system(f"pip install -q xformers==0.0.16")
|
7 |
elif("T4" in gpu_info):
|
8 |
+
os.system(f"pip install -q xformers==0.0.16")
|
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")
|