Update app.py
Browse files
app.py
CHANGED
@@ -419,7 +419,7 @@ def gen_qa_what(df):
|
|
419 |
list_of_ans_what.append(f"""Ans{j+1}:{answer[j]}""")
|
420 |
input_evidence = f"answer_the_next_question_from_context: {question_ids} context: {evidence}"
|
421 |
#time.sleep(10)
|
422 |
-
answer_evidence = query_evidence({"inputs":input_evidence,"truncation":True
|
423 |
if answer_evidence.lower() in evidence.lower():
|
424 |
list_of_evidence_answer_what.append(f"""Evidence{j+1}:{answer_evidence}""")
|
425 |
|
|
|
419 |
list_of_ans_what.append(f"""Ans{j+1}:{answer[j]}""")
|
420 |
input_evidence = f"answer_the_next_question_from_context: {question_ids} context: {evidence}"
|
421 |
#time.sleep(10)
|
422 |
+
answer_evidence = query_evidence({"inputs":input_evidence,"truncation":True})[0]['generated_text']
|
423 |
if answer_evidence.lower() in evidence.lower():
|
424 |
list_of_evidence_answer_what.append(f"""Evidence{j+1}:{answer_evidence}""")
|
425 |
|