Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,6 @@ def get_pipeline():
|
|
27 |
The question answering pipeline object
|
28 |
"""
|
29 |
repo_id = 'etweedy/roberta-base-squad-v2'
|
30 |
-
model = AutoModelForQuestionAnswering.from_pretrained(repo_id)
|
31 |
-
tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
32 |
qa_pipeline = pipeline(
|
33 |
task = 'question-answering',
|
34 |
model=repo_id,
|
|
|
27 |
The question answering pipeline object
|
28 |
"""
|
29 |
repo_id = 'etweedy/roberta-base-squad-v2'
|
|
|
|
|
30 |
qa_pipeline = pipeline(
|
31 |
task = 'question-answering',
|
32 |
model=repo_id,
|