Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ from threading import Thread
|
|
| 4 |
import re
|
| 5 |
import time
|
| 6 |
import torch
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
from io import BytesIO
|
| 12 |
|
|
|
|
| 4 |
import re
|
| 5 |
import time
|
| 6 |
import torch
|
| 7 |
+
import spaces
|
| 8 |
+
import subprocess
|
| 9 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 10 |
|
| 11 |
from io import BytesIO
|
| 12 |
|