Update app.py
Browse files
app.py
CHANGED
@@ -360,7 +360,7 @@ def gen_qa_who(df):
|
|
360 |
list_of_ans_who.append(f"""Ans{j+1}:{answer[j]}""")
|
361 |
input_evidence = f"answer_the_next_question_from_context: {question_ids} context: {evidence}"
|
362 |
#time.sleep(10)
|
363 |
-
answer_evidence = query_evidence({"inputs":input_evidence,"truncation":True,"wait_for_model":True})[0]['generated_text']
|
364 |
if answer_evidence.lower() in evidence.lower():
|
365 |
list_of_evidence_answer_who.append(f"""Evidence{j+1}:{answer_evidence}""")
|
366 |
else:
|
|
|
360 |
list_of_ans_who.append(f"""Ans{j+1}:{answer[j]}""")
|
361 |
input_evidence = f"answer_the_next_question_from_context: {question_ids} context: {evidence}"
|
362 |
#time.sleep(10)
|
363 |
+
answer_evidence = query_evidence({"inputs":input_evidence,"truncation":True,"wait_for_model":True}) #[0]['generated_text']
|
364 |
if answer_evidence.lower() in evidence.lower():
|
365 |
list_of_evidence_answer_who.append(f"""Evidence{j+1}:{answer_evidence}""")
|
366 |
else:
|