Commit ·
335fcc3
1
Parent(s): f26e83b
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ text = 'This is a perfect way to break the ice and start the conversation.'
|
|
| 24 |
|
| 25 |
inputs = prompt.format(task, text)
|
| 26 |
inputs = tokenizer(inputs, return_tensors="pt")
|
| 27 |
-
output = model.generate(**inputs)
|
| 28 |
pred = tokenizer.decode(output[0].tolist(), skip_special_tokens=True, clean_up_tokenization_spaces=False)
|
| 29 |
```
|
| 30 |
|
|
|
|
| 24 |
|
| 25 |
inputs = prompt.format(task, text)
|
| 26 |
inputs = tokenizer(inputs, return_tensors="pt")
|
| 27 |
+
output = model.generate(**inputs, num_beams=5, max_length=10)
|
| 28 |
pred = tokenizer.decode(output[0].tolist(), skip_special_tokens=True, clean_up_tokenization_spaces=False)
|
| 29 |
```
|
| 30 |
|