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