Spaces:
Running
on
Zero
Running
on
Zero
Update caption_models.py
Browse files- caption_models.py +1 -1
caption_models.py
CHANGED
@@ -9,7 +9,7 @@ from datetime import datetime
|
|
9 |
import subprocess
|
10 |
import torch.nn as nn
|
11 |
|
12 |
-
subprocess.run('pip install flash-attn --no-build-isolation',
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
|
|
|
9 |
import subprocess
|
10 |
import torch.nn as nn
|
11 |
|
12 |
+
subprocess.run('pip install flash-attn --no-build-isolation', shell=True)
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
|