Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ DESCRIPTION = "# Image Captioning with LongCap"
|
|
12 |
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
-
model_id = "unography/blip-long-cap"
|
16 |
processor = BlipProcessor.from_pretrained(model_id)
|
17 |
model = BlipForConditionalGeneration.from_pretrained(model_id).to(device)
|
18 |
|
|
|
12 |
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
+
model_id = "unography/blip-large-long-cap"
|
16 |
processor = BlipProcessor.from_pretrained(model_id)
|
17 |
model = BlipForConditionalGeneration.from_pretrained(model_id).to(device)
|
18 |
|