Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,10 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
11 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-capfilt-large")
|
12 |
model_vqa = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-capfilt-large").to(device)
|
13 |
|
14 |
-
from transformers import BlipProcessor,
|
15 |
|
16 |
-
cap_processor = BlipProcessor.from_pretrained("Salesforce/
|
17 |
-
cap_model =
|
18 |
|
19 |
|
20 |
|
|
|
11 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-capfilt-large")
|
12 |
model_vqa = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-capfilt-large").to(device)
|
13 |
|
14 |
+
from transformers import BlipProcessor, BlipForConditionalGeneration
|
15 |
|
16 |
+
cap_processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
17 |
+
cap_model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large")
|
18 |
|
19 |
|
20 |
|