danduh commited on
Commit
fc95063
·
1 Parent(s): 5278fae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -9,4 +9,15 @@ datasets:
9
  - wikipedia
10
  ---
11
 
12
- Some cool text
 
 
 
 
 
 
 
 
 
 
 
 
9
  - wikipedia
10
  ---
11
 
12
+ Some cool text
13
+
14
+ and in TensorFlow:
15
+
16
+ ```python
17
+ from transformers import GPT2Tokenizer, TFGPT2Model
18
+ tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
19
+ model = TFGPT2Model.from_pretrained('gpt2')
20
+ text = "Replace me by any text you'd like."
21
+ encoded_input = tokenizer(text, return_tensors='tf')
22
+ output = model(encoded_input)
23
+ ```