Update README.md
Browse files
README.md
CHANGED
@@ -25,7 +25,7 @@ You can use it directly from the [🤗 Transformers](https://github.com/huggingf
|
|
25 |
|
26 |
>>> tokenizer = AutoTokenizer.from_pretrained("zhufy/squad-en-bert-base")
|
27 |
>>> model = AutoModelForQuestionAnswering.from_pretrained("zhufy/squad-en-bert-base")
|
28 |
-
>>> nlp = pipeline("
|
29 |
|
30 |
>>> context = "A problem is regarded as inherently difficult if its
|
31 |
solution requires significant resources, whatever the
|
|
|
25 |
|
26 |
>>> tokenizer = AutoTokenizer.from_pretrained("zhufy/squad-en-bert-base")
|
27 |
>>> model = AutoModelForQuestionAnswering.from_pretrained("zhufy/squad-en-bert-base")
|
28 |
+
>>> nlp = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
29 |
|
30 |
>>> context = "A problem is regarded as inherently difficult if its
|
31 |
solution requires significant resources, whatever the
|