michelecafagna26 commited on
Commit
bbe4f57
·
1 Parent(s): b1ad2e2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -38,8 +38,8 @@ import requests
38
  from PIL import Image
39
  from transformers import BlipProcessor, BlipForConditionalGeneration
40
 
41
- processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
42
- model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base").to("cuda")
43
 
44
  img_url = 'https://datasets-server.huggingface.co/assets/michelecafagna26/hl/--/default/train/0/image/image.jpg'
45
  raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
 
38
  from PIL import Image
39
  from transformers import BlipProcessor, BlipForConditionalGeneration
40
 
41
+ processor = BlipProcessor.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-actions")
42
+ model = BlipForConditionalGeneration.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-actions").to("cuda")
43
 
44
  img_url = 'https://datasets-server.huggingface.co/assets/michelecafagna26/hl/--/default/train/0/image/image.jpg'
45
  raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')