uooogh commited on
Commit
23536fb
·
1 Parent(s): 27d998d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,8 @@
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.15/xformers-0.0.15.dev0+4c06c79.d20221205-cp38-cp38-linux_x86_64.whl")
 
1
  import os
2
  from subprocess import getoutput
3
 
4
+ commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test --no-half")
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.15/xformers-0.0.15.dev0+4c06c79.d20221205-cp38-cp38-linux_x86_64.whl")