ysharma HF staff commited on
Commit
17dc18a
β€’
1 Parent(s): e121051

Update app.py

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