lnyan commited on
Commit
a109b5e
1 Parent(s): 412b263
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +1 -2
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import io
2
  import base64
3
  import os
 
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
8
  import os
requirements.txt CHANGED
@@ -13,5 +13,4 @@ transformers
13
  ftfy
14
  fpie
15
  accelerate
16
- ninja
17
- -e git+https://github.com/facebookresearch/xformers.git@main#egg=xformers
 
13
  ftfy
14
  fpie
15
  accelerate
16
+ ninja