Update README.md
Browse files
README.md
CHANGED
@@ -62,10 +62,14 @@ encoding = tokenizer(ytb['Title'][i], return_tensors="pt")
|
|
62 |
input_ids, attention_masks = encoding["input_ids"].to("cuda"), encoding["attention_mask"].to("cuda")
|
63 |
|
64 |
outputs = model.generate(
|
|
|
65 |
input_ids=input_ids, attention_mask=attention_masks,
|
|
|
66 |
max_length=30,
|
|
|
67 |
early_stopping=True
|
68 |
)
|
69 |
|
70 |
for output in outputs:
|
|
|
71 |
outputs = tokenizer.decode(output, skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
|
|
62 |
input_ids, attention_masks = encoding["input_ids"].to("cuda"), encoding["attention_mask"].to("cuda")
|
63 |
|
64 |
outputs = model.generate(
|
65 |
+
|
66 |
input_ids=input_ids, attention_mask=attention_masks,
|
67 |
+
|
68 |
max_length=30,
|
69 |
+
|
70 |
early_stopping=True
|
71 |
)
|
72 |
|
73 |
for output in outputs:
|
74 |
+
|
75 |
outputs = tokenizer.decode(output, skip_special_tokens=True, clean_up_tokenization_spaces=True)
|