Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from threading import Thread
|
2 |
import torch
|
3 |
from PIL import Image
|
|
|
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 |
from threading import Thread
|
8 |
import torch
|
9 |
from PIL import Image
|