Update README.md
Browse files
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)
|