Spaces:
Running
Running
Updating function name for ask a question
#2
by
pradyten
- opened
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def get_qa_pipeline(qa_model_name: str = QA_MODEL_NAME) -> QuestionAnsweringPipe
|
|
| 90 |
|
| 91 |
def get_answer(question: str, context: str) -> str:
|
| 92 |
qa_pipeline = get_qa_pipeline()
|
| 93 |
-
prediction =
|
| 94 |
return prediction["answer"]
|
| 95 |
|
| 96 |
|
|
|
|
| 90 |
|
| 91 |
def get_answer(question: str, context: str) -> str:
|
| 92 |
qa_pipeline = get_qa_pipeline()
|
| 93 |
+
prediction = get_qa_pipeline(question=question, context=context)
|
| 94 |
return prediction["answer"]
|
| 95 |
|
| 96 |
|