lnyan commited on
Commit
dafd8ad
1 Parent(s): a109b5e
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import subprocess
2
- import os.path as osp
3
-
4
- subprocess.check_call("pip install -v -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers", cwd=osp.dirname(__file__), shell=True)
 
5
 
6
  import io
7
  import base64
 
1
  import subprocess
2
+ # import os.path as osp
3
+ import pip
4
+ pip.main(["install","-v","-U","git+https://github.com/facebookresearch/xformers.git@main#egg=xformers"])
5
+ # subprocess.check_call("pip install -v -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers", cwd=osp.dirname(__file__), shell=True)
6
 
7
  import io
8
  import base64