piazzola commited on
Commit
c4bf2d5
1 Parent(s): a1b88c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ sentence = "i left the keys in the car."
24
 
25
  with torch.no_grad():
26
  inputs = tokenizer([sentence], return_tensors="pt")
27
- outputs = model.generate(**inputs)
28
  generated_text = tokenizer.decode(outputs[0])
29
 
30
  print(generated_text)
 
24
 
25
  with torch.no_grad():
26
  inputs = tokenizer([sentence], return_tensors="pt")
27
+ outputs = model.generate(**inputs, max_new_tokens=100)
28
  generated_text = tokenizer.decode(outputs[0])
29
 
30
  print(generated_text)