Towhidul commited on
Commit
0642e0f
·
1 Parent(s): 479dd5b

Update app.py

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