Update README.md
Browse files
README.md
CHANGED
@@ -56,8 +56,8 @@ The edit intentions are provided by [IteraTeR-full-sent](https://huggingface.co/
|
|
56 |
```python
|
57 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
58 |
|
59 |
-
tokenizer = AutoTokenizer.from_pretrained("wanyu/IteraTeR-BART")
|
60 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("wanyu/IteraTeR-BART")
|
61 |
before_input = '<fluency> I likes coffee.'
|
62 |
model_input = tokenizer(before_input, return_tensors='pt')
|
63 |
model_outputs = model.generate(**model_input, num_beams=8, max_length=1024)
|
|
|
56 |
```python
|
57 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
58 |
|
59 |
+
tokenizer = AutoTokenizer.from_pretrained("wanyu/IteraTeR-BART-Revision-Generator")
|
60 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("wanyu/IteraTeR-BART-Revision-Generator")
|
61 |
before_input = '<fluency> I likes coffee.'
|
62 |
model_input = tokenizer(before_input, return_tensors='pt')
|
63 |
model_outputs = model.generate(**model_input, num_beams=8, max_length=1024)
|