Update README.md
Browse files
README.md
CHANGED
|
@@ -36,7 +36,8 @@ Additional resources:
|
|
| 36 |
|
| 37 |
|
| 38 |
Using the model in a text-generation pipeline:
|
| 39 |
-
|
|
|
|
| 40 |
from transformers import pipeline
|
| 41 |
import torch
|
| 42 |
|
|
@@ -55,7 +56,8 @@ print(outputs[0]["generated_text"][len(prompt):])
|
|
| 55 |
|
| 56 |
|
| 57 |
Using the model in a conversational pipeline (works with transformers==4.36.2, issues with output in newer versions):
|
| 58 |
-
|
|
|
|
| 59 |
from transformers import pipeline, Conversation
|
| 60 |
import torch
|
| 61 |
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
Using the model in a text-generation pipeline:
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
from transformers import pipeline
|
| 42 |
import torch
|
| 43 |
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
Using the model in a conversational pipeline (works with transformers==4.36.2, issues with output in newer versions):
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
from transformers import pipeline, Conversation
|
| 62 |
import torch
|
| 63 |
|