vilarin commited on
Commit
39dbb23
1 Parent(s): c34cc0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  import torch
2
  from PIL import Image
3
  import gradio as gr
 
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
+
8
  import torch
9
  from PIL import Image
10
  import gradio as gr