Update README.md
Browse files
README.md
CHANGED
@@ -73,7 +73,7 @@ summary_ids = model.generate(
|
|
73 |
do_sample=True
|
74 |
)
|
75 |
|
76 |
-
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True, max_length=
|
77 |
|
78 |
print(f"Generated Summary: {summary}")
|
79 |
```
|
|
|
73 |
do_sample=True
|
74 |
)
|
75 |
|
76 |
+
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True, max_length=512, truncation='do_not_truncate')
|
77 |
|
78 |
print(f"Generated Summary: {summary}")
|
79 |
```
|