Commit
·
8237f42
1
Parent(s):
2b48be8
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-p
|
|
| 38 |
|
| 39 |
text = "Replace me by any text you'd like."
|
| 40 |
inputs = tokenizer(text, return_tensors='pt')
|
| 41 |
-
prediction = model.generate(
|
| 42 |
prediction = tokenizer.batch_decode(prediction)
|
| 43 |
```
|
| 44 |
|
|
|
|
| 38 |
|
| 39 |
text = "Replace me by any text you'd like."
|
| 40 |
inputs = tokenizer(text, return_tensors='pt')
|
| 41 |
+
prediction = model.generate(**inputs)
|
| 42 |
prediction = tokenizer.batch_decode(prediction)
|
| 43 |
```
|
| 44 |
|