Update README.md
Browse files
README.md
CHANGED
@@ -52,9 +52,7 @@ from transformers import pipeline
|
|
52 |
qa_pipeline = pipeline("question-answering", model="xichenn/albert-base-v2-squad")
|
53 |
|
54 |
# Run inference
|
55 |
-
result = qa_pipeline(
|
56 |
-
"question": "What is the capital of France?",
|
57 |
-
"context": "France is a country in Europe. Its capital is Paris.",
|
58 |
-
})
|
59 |
|
60 |
-
print(result)
|
|
|
|
52 |
qa_pipeline = pipeline("question-answering", model="xichenn/albert-base-v2-squad")
|
53 |
|
54 |
# Run inference
|
55 |
+
result = qa_pipeline(question="What is the capital of France?", context="France is a country in Europe. Its capital is Paris.")
|
|
|
|
|
|
|
56 |
|
57 |
+
print(result)
|
58 |
+
```
|