Update README.md
Browse files
README.md
CHANGED
@@ -60,8 +60,8 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
60 |
tokenizer = AutoTokenizer.from_pretrained("grammarly/spivavtor-large")
|
61 |
model = AutoModelForSeq2SeqLM.from_pretrained("grammarly/spivavtor-large")
|
62 |
|
|
|
63 |
input_text = 'Виправте граматику в цьому реченнi: Дякую за iнформацiю! ми з Надiєю саме вийшли з дому'
|
64 |
-
# English translation of text: "Paraphrase the sentence: What is the greatest compliment that you ever received from anyone?"
|
65 |
|
66 |
inputs = tokenizer.encode(input_text, return_tensors="pt")
|
67 |
output = model.generate(inputs, max_length=256)
|
|
|
60 |
tokenizer = AutoTokenizer.from_pretrained("grammarly/spivavtor-large")
|
61 |
model = AutoModelForSeq2SeqLM.from_pretrained("grammarly/spivavtor-large")
|
62 |
|
63 |
+
# Paraphrase the sentence: What is the greatest compliment that you ever received from anyone?
|
64 |
input_text = 'Виправте граматику в цьому реченнi: Дякую за iнформацiю! ми з Надiєю саме вийшли з дому'
|
|
|
65 |
|
66 |
inputs = tokenizer.encode(input_text, return_tensors="pt")
|
67 |
output = model.generate(inputs, max_length=256)
|