Transformers
PyTorch
English
bridgetower
Inference Endpoints
anahita-b commited on
Commit
1c17490
1 Parent(s): 49a026c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -34,7 +34,7 @@ interests you.
34
 
35
  Here is how to use this model to get the features of a given text in PyTorch:
36
  ```python
37
- from transformers import BridgeTowerProcessor, BridgeTowerForModel
38
  import requests
39
  from PIL import Image
40
 
@@ -43,7 +43,7 @@ image = Image.open(requests.get(url, stream=True).raw)
43
  text = "hello world"
44
 
45
  processor = BridgeTowerProcessor.from_pretrained("BridgeTower/bridgetower-base")
46
- model = BridgeTowerForModel.from_pretrained("BridgeTower/bridgetower-base")
47
  # Prepare inputs
48
  encoding = processor(image, text, return_tensors="pt")
49
  # Forward pass
 
34
 
35
  Here is how to use this model to get the features of a given text in PyTorch:
36
  ```python
37
+ from transformers import BridgeTowerProcessor, BridgeTowerModel
38
  import requests
39
  from PIL import Image
40
 
 
43
  text = "hello world"
44
 
45
  processor = BridgeTowerProcessor.from_pretrained("BridgeTower/bridgetower-base")
46
+ model = BridgeTowerModel.from_pretrained("BridgeTower/bridgetower-base")
47
  # Prepare inputs
48
  encoding = processor(image, text, return_tensors="pt")
49
  # Forward pass