Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from transformers import BlipForConditionalGeneration, BlipProcessor
|
|
5 |
|
6 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
7 |
|
8 |
-
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-
|
9 |
-
model_image_captioning = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-
|
10 |
|
11 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
12 |
|
|
|
5 |
|
6 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
7 |
|
8 |
+
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
9 |
+
model_image_captioning = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large").to(device)
|
10 |
|
11 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
12 |
|