vasudevgupta commited on
Commit
34117d8
1 Parent(s): b97fe84

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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(input_ids=input_ids, num_beams=5, length_penalty=0.8)
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