seidel commited on
Commit
6d38e8a
1 Parent(s): e8acd89

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ Project [github](https://github.com/aseidelo/wiki_generator/tree/cdd38918c207020
24
 
25
  tokenizer = T5TokenizerFast.from_pretrained("seidel/plsum-base-ptt5")
26
  model = T5ForConditionalGeneration.from_pretrained("seidel/plsum-base-ptt5", use_cache=False)
27
- x = tokenizer([input_text], padding="max_length", max_length=max_length, return_tensors="pt", truncation=True)
28
  y = model.generate(**x)
29
  print(tokenizer.batch_decode(y, skip_special_tokens=True))
30
 
 
24
 
25
  tokenizer = T5TokenizerFast.from_pretrained("seidel/plsum-base-ptt5")
26
  model = T5ForConditionalGeneration.from_pretrained("seidel/plsum-base-ptt5", use_cache=False)
27
+ x = tokenizer([input_text], padding="max_length", max_length=512, return_tensors="pt", truncation=True)
28
  y = model.generate(**x)
29
  print(tokenizer.batch_decode(y, skip_special_tokens=True))
30