Update README.md
Browse files
README.md
CHANGED
@@ -33,8 +33,8 @@ input_sentences = ["Yo va al tienda.", "Espero que tú ganas."]
|
|
33 |
|
34 |
tokenized_text = tokenizer(input_sentences, return_tensors="pt")
|
35 |
|
36 |
-
input_ids =
|
37 |
-
attention_mask =
|
38 |
|
39 |
outputs = model.generate(input_ids=input_ids, attention_mask=attention_mask)
|
40 |
|
|
|
33 |
|
34 |
tokenized_text = tokenizer(input_sentences, return_tensors="pt")
|
35 |
|
36 |
+
input_ids = tokenized_text["input_ids"].squeeze()
|
37 |
+
attention_mask = tokenized_text["attention_mask"].squeeze()
|
38 |
|
39 |
outputs = model.generate(input_ids=input_ids, attention_mask=attention_mask)
|
40 |
|