Update README.md
Browse files
README.md
CHANGED
|
@@ -18,11 +18,11 @@ Here is the script that I used to enable the 4 line chat:
|
|
| 18 |
|
| 19 |
```python
|
| 20 |
import torch
|
| 21 |
-
from transformers import AutoTokenizer,
|
| 22 |
-
|
| 23 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 24 |
-
|
| 25 |
-
model =
|
| 26 |
|
| 27 |
|
| 28 |
# Let's chat for 4 lines
|
|
|
|
| 18 |
|
| 19 |
```python
|
| 20 |
import torch
|
| 21 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 22 |
+
|
| 23 |
+
tokenizer = AutoTokenizer.from_pretrained("vuminhtue/DialoGPT-large-HarryPotter3")
|
| 24 |
+
|
| 25 |
+
model = AutoModelForCausalLM.from_pretrained("vuminhtue/DialoGPT-large-HarryPotter3")
|
| 26 |
|
| 27 |
|
| 28 |
# Let's chat for 4 lines
|