darkstorm2150 commited on
Commit
4e42746
·
verified ·
1 Parent(s): 093cb25

added build tools

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -124,7 +124,11 @@ else:
124
  #os.system(f'echo "Installing xformers..."')
125
  #os.system(f"pip install --no-cache-dir xformers==0.0.25 --extra-index-url https://download.pytorch.org/whl/cu118")
126
 
127
- # Building xformers
 
 
 
 
128
  os.system(f'echo "Cloning xformers repo..."')
129
  os.system(f'git clone https://github.com/facebookresearch/xformers.git /home/user/app/xformers')
130
 
 
124
  #os.system(f'echo "Installing xformers..."')
125
  #os.system(f"pip install --no-cache-dir xformers==0.0.25 --extra-index-url https://download.pytorch.org/whl/cu118")
126
 
127
+ os.system(f'echo "Installing build dependencies..."')
128
+ os.system(f'pip install ninja packaging wheel')
129
+ os.system(f'apt-get update && apt-get install -y build-essential cmake git')
130
+
131
+ # Building xformers from source
132
  os.system(f'echo "Cloning xformers repo..."')
133
  os.system(f'git clone https://github.com/facebookresearch/xformers.git /home/user/app/xformers')
134