MarcBrun commited on
Commit
bc8b6c7
·
1 Parent(s): 8e54fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=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