Use BioGptModel to get features

#19
by pete88b - opened
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -30,9 +30,9 @@ set a seed for reproducibility:
30
  Here is how to use this model to get the features of a given text in PyTorch:
31
 
32
  ```python
33
- from transformers import BioGptTokenizer, BioGptForCausalLM
34
  tokenizer = BioGptTokenizer.from_pretrained("microsoft/biogpt")
35
- model = BioGptForCausalLM.from_pretrained("microsoft/biogpt")
36
  text = "Replace me by any text you'd like."
37
  encoded_input = tokenizer(text, return_tensors='pt')
38
  output = model(**encoded_input)
 
30
  Here is how to use this model to get the features of a given text in PyTorch:
31
 
32
  ```python
33
+ from transformers import BioGptTokenizer, BioGptModel
34
  tokenizer = BioGptTokenizer.from_pretrained("microsoft/biogpt")
35
+ model = BioGptModel.from_pretrained("microsoft/biogpt")
36
  text = "Replace me by any text you'd like."
37
  encoded_input = tokenizer(text, return_tensors='pt')
38
  output = model(**encoded_input)