Update README.md
This commit is contained in:
parent
523a3d62e7
commit
710686f446
@ -99,7 +99,7 @@ inputs = tokenizer('''def print_prime(n):
|
||||
"""''', return_tensors="pt", return_attention_mask=False)
|
||||
|
||||
outputs = model.generate(**inputs, max_length=200)
|
||||
text = tokenizer.batch_decode(outputs[0])
|
||||
text = tokenizer.batch_decode(outputs)[0]
|
||||
print(text)
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user