xichenn commited on
Commit
957e2ab
verified
1 Parent(s): 8f49ff1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -5
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
+ ```