Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|