dewsy commited on
Commit
a2c100d
·
verified ·
1 Parent(s): 3d74acf

Update README.md

Browse files

this example python throws error without the from_tf arg

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -40,7 +40,7 @@ import requests
40
 
41
  from transformers import CLIPProcessor, CLIPModel
42
 
43
- model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
44
  processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
45
 
46
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
 
40
 
41
  from transformers import CLIPProcessor, CLIPModel
42
 
43
+ model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32", from_tf=True)
44
  processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
45
 
46
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"