machineteacher commited on
Commit
0fccc61
1 Parent(s): 98cf383

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -73,7 +73,7 @@ from transformers import AutoTokenizer, T5ForConditionalGeneration
73
 
74
  tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-xl-composite")
75
  model = T5ForConditionalGeneration.from_pretrained("grammarly/coedit-xl-composite")
76
- input_text = 'Fix grammatical errors in this sentence and make it simpler: New kinds of vehicles will be invented with new technology than today.'
77
  input_ids = tokenizer(input_text, return_tensors="pt").input_ids
78
  outputs = model.generate(input_ids, max_length=256)
79
  edited_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
 
73
 
74
  tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-xl-composite")
75
  model = T5ForConditionalGeneration.from_pretrained("grammarly/coedit-xl-composite")
76
+ input_text = 'Fix grammatical errors in this sentence and make it simpler: When I grow up, I start to understand what he said is quite right.'
77
  input_ids = tokenizer(input_text, return_tensors="pt").input_ids
78
  outputs = model.generate(input_ids, max_length=256)
79
  edited_text = tokenizer.decode(outputs[0], skip_special_tokens=True)