Update README.md
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
```py
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
5 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
6 |
|
7 |
text = "Abstract of a paper."
|
8 |
batch = tok(text, return_tensors="pt")
|
|
|
1 |
```py
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("sobamchan/bart-large-scitldr")
|
5 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("sobamchan/bart-large-scitldr")
|
6 |
|
7 |
text = "Abstract of a paper."
|
8 |
batch = tok(text, return_tensors="pt")
|