vilarin commited on
Commit
085f93a
1 Parent(s): 2be5729

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  from threading import Thread
2
  import torch
3
  from PIL import Image
 
1
+ import subprocess
2
+ subprocess.run(
3
+ 'pip install flash-attn --no-build-isolation',
4
+ env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"},
5
+ shell=True
6
+ )
7
  from threading import Thread
8
  import torch
9
  from PIL import Image