Update README.md
Browse files
README.md
CHANGED
@@ -34,6 +34,7 @@ This is the model for abstractive summarization for Russian based on [rugpt3medi
|
|
34 |
Colab: [link](https://colab.research.google.com/drive/1re5E26ZIDUpAx1gOCZkbF3hcwjozmgG0)
|
35 |
|
36 |
```python
|
|
|
37 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
38 |
|
39 |
model_name = "IlyaGusev/rugpt3medium_sum_gazeta"
|
@@ -50,7 +51,7 @@ text_tokens = tokenizer(
|
|
50 |
truncation=True
|
51 |
)["input_ids"]
|
52 |
input_ids = text_tokens + [tokenizer.sep_token_id]
|
53 |
-
input_ids = torch.LongTensor([input_ids])
|
54 |
|
55 |
output_ids = model.generate(
|
56 |
input_ids=input_ids,
|
|
|
34 |
Colab: [link](https://colab.research.google.com/drive/1re5E26ZIDUpAx1gOCZkbF3hcwjozmgG0)
|
35 |
|
36 |
```python
|
37 |
+
import torch
|
38 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
39 |
|
40 |
model_name = "IlyaGusev/rugpt3medium_sum_gazeta"
|
|
|
51 |
truncation=True
|
52 |
)["input_ids"]
|
53 |
input_ids = text_tokens + [tokenizer.sep_token_id]
|
54 |
+
input_ids = torch.LongTensor([input_ids])
|
55 |
|
56 |
output_ids = model.generate(
|
57 |
input_ids=input_ids,
|