akhaliq HF staff commited on
Commit
7e9dbec
1 Parent(s): 2847c69

Update app.py

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