jdev8 commited on
Commit
8912169
1 Parent(s): ea71c24

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -43,8 +43,8 @@ input_ids = tokenizer.encode(
43
 
44
  # Generate
45
  output = model.generate(
46
- input_ids, max_length=150, num_return_sequences=1,
47
- no_repeat_ngram_size=2, early_stopping=True
48
  )
49
 
50
  # Decode output
 
43
 
44
  # Generate
45
  output = model.generate(
46
+ input_ids, max_length=60, num_return_sequences=1,
47
+ early_stopping=True, pad_token_id=tokenizer.eos_token_id,
48
  )
49
 
50
  # Decode output