ybelkada commited on
Commit
64ec3ab
1 Parent(s): 6a7d4e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-base")
9
- model_image_captioning = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base").to(device)
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