Text Generation
Transformers
PyTorch
Chinese
English
gpt2
text-generation-inference
Inference Endpoints
Hollway commited on
Commit
0c6b87b
1 Parent(s): 0e34de3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -12,8 +12,8 @@ from transformers import GPT2Tokenizer, GPT2LMHeadModel
12
  import torch
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
- tokenizer = GPT2Tokenizer.from_pretrained('Hollway/gpt2_finetne')
16
- model = GPT2LMHeadModel.from_pretrained('Hollway/gpt2_finetne').to(device)
17
  ```
18
 
19
  ### Inference
 
12
  import torch
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
+ tokenizer = GPT2Tokenizer.from_pretrained('Hollway/gpt2_finetune')
16
+ model = GPT2LMHeadModel.from_pretrained('Hollway/gpt2_finetune').to(device)
17
  ```
18
 
19
  ### Inference