Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import os
|
|
12 |
|
13 |
DESCRIPTION = "# Image Captioning with LongCap"
|
14 |
|
15 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "
|
16 |
print("Using device: ", device)
|
17 |
|
18 |
model_id = "unography/blip-long-cap"
|
|
|
12 |
|
13 |
DESCRIPTION = "# Image Captioning with LongCap"
|
14 |
|
15 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
16 |
print("Using device: ", device)
|
17 |
|
18 |
model_id = "unography/blip-long-cap"
|