Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def testQA(question):
|
|
104 |
|
105 |
time = datetime.now()
|
106 |
context = list(filter(lambda x: x['benefitName']==predictedBenefit and x['coreName']==predictedCore, benefits))[0]
|
107 |
-
answer = question_answerer(question = question, context = context['context'])
|
108 |
time3 = (datetime.now() - time).total_seconds()
|
109 |
|
110 |
return answer
|
|
|
104 |
|
105 |
time = datetime.now()
|
106 |
context = list(filter(lambda x: x['benefitName']==predictedBenefit and x['coreName']==predictedCore, benefits))[0]
|
107 |
+
answer = question_answerer(question = question, context = context['context'])['answer']
|
108 |
time3 = (datetime.now() - time).total_seconds()
|
109 |
|
110 |
return answer
|