Update README.md
Browse filesFixed typo in line `qa = pipeline({"question-answering", model=model, tokenizer=tokenizer)` by removing leading curly bracket, so code example can be copied and pasted to run directly.
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?"
|