Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ def answer_question(question, answer_text):
|
|
6 |
model_checkpoint = "MarcBrun/ixambert-finetuned-squad"
|
7 |
question_answerer = pipeline("question-answering", model=model_checkpoint)
|
8 |
|
9 |
-
answer = question_answerer(question=question, context=
|
10 |
|
11 |
return answer["answer"]
|
12 |
|
|
|
6 |
model_checkpoint = "MarcBrun/ixambert-finetuned-squad"
|
7 |
question_answerer = pipeline("question-answering", model=model_checkpoint)
|
8 |
|
9 |
+
answer = question_answerer(question=question, context=answer_text)
|
10 |
|
11 |
return answer["answer"]
|
12 |
|