Update README.md
#1
by
sefinch
- opened
README.md
CHANGED
@@ -81,7 +81,7 @@ ckpt = "mrm8488/longformer-base-4096-finetuned-squadv2"
|
|
81 |
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
82 |
model = AutoModelForQuestionAnswering.from_pretrained(ckpt)
|
83 |
|
84 |
-
qa = pipeline(
|
85 |
|
86 |
text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
|
87 |
question = "What has Huggingface done?"
|
|
|
81 |
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
82 |
model = AutoModelForQuestionAnswering.from_pretrained(ckpt)
|
83 |
|
84 |
+
qa = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
85 |
|
86 |
text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
|
87 |
question = "What has Huggingface done?"
|