Update app.py
Browse files
app.py
CHANGED
@@ -391,7 +391,7 @@ def gen_qa_who(df):
|
|
391 |
list_of_ans_who=""
|
392 |
list_of_evidence_answer_who="No mention of 'who'in any related documents."
|
393 |
rouge_l_scores="Not verifiable"
|
394 |
-
return list_of_ques_who,list_of_ans_who,rouge_l_scores
|
395 |
#------------------------------------------------------------
|
396 |
# @st.cache
|
397 |
def rephrase_question_what(question):
|
@@ -452,7 +452,7 @@ def gen_qa_what(df):
|
|
452 |
list_of_ans_what=""
|
453 |
list_of_evidence_answer_what="No mention of 'what'in any related documents."
|
454 |
rouge_l_scores="Not verifiable"
|
455 |
-
return list_of_ques_what,list_of_ans_what,rouge_l_scores
|
456 |
#----------------------------------------------------------
|
457 |
# @st.cache
|
458 |
def rephrase_question_why(question):
|
@@ -513,7 +513,7 @@ def gen_qa_why(df):
|
|
513 |
list_of_ans_why=""
|
514 |
list_of_evidence_answer_why="No mention of 'why'in any related documents."
|
515 |
rouge_l_scores="Not verifiable"
|
516 |
-
return list_of_ques_why,list_of_ans_why,rouge_l_scores
|
517 |
|
518 |
#---------------------------------------------------------
|
519 |
# @st.cache
|
@@ -574,7 +574,7 @@ def gen_qa_when(df):
|
|
574 |
list_of_ans_when=""
|
575 |
list_of_evidence_answer_when="No mention of 'when'in any related documents."
|
576 |
rouge_l_scores="Not verifiable"
|
577 |
-
return list_of_ques_when,list_of_ans_when,rouge_l_scores
|
578 |
|
579 |
#------------------------------------------------------
|
580 |
# @st.cache
|
@@ -635,7 +635,7 @@ def gen_qa_where(df):
|
|
635 |
list_of_ans_where=""
|
636 |
list_of_evidence_answer_where="No mention of 'where'in any related documents."
|
637 |
rouge_l_scores="Not verifiable"
|
638 |
-
return list_of_ques_where,list_of_ans_where,rouge_l_scores
|
639 |
#------------------------------------------------------
|
640 |
|
641 |
|
|
|
391 |
list_of_ans_who=""
|
392 |
list_of_evidence_answer_who="No mention of 'who'in any related documents."
|
393 |
rouge_l_scores="Not verifiable"
|
394 |
+
return list_of_ques_who,list_of_ans_who,list_of_evidence_answer_who,rouge_l_scores
|
395 |
#------------------------------------------------------------
|
396 |
# @st.cache
|
397 |
def rephrase_question_what(question):
|
|
|
452 |
list_of_ans_what=""
|
453 |
list_of_evidence_answer_what="No mention of 'what'in any related documents."
|
454 |
rouge_l_scores="Not verifiable"
|
455 |
+
return list_of_ques_what,list_of_ans_what,list_of_evidence_answer_what,rouge_l_scores
|
456 |
#----------------------------------------------------------
|
457 |
# @st.cache
|
458 |
def rephrase_question_why(question):
|
|
|
513 |
list_of_ans_why=""
|
514 |
list_of_evidence_answer_why="No mention of 'why'in any related documents."
|
515 |
rouge_l_scores="Not verifiable"
|
516 |
+
return list_of_ques_why,list_of_ans_why,list_of_evidence_answer_why,rouge_l_scores
|
517 |
|
518 |
#---------------------------------------------------------
|
519 |
# @st.cache
|
|
|
574 |
list_of_ans_when=""
|
575 |
list_of_evidence_answer_when="No mention of 'when'in any related documents."
|
576 |
rouge_l_scores="Not verifiable"
|
577 |
+
return list_of_ques_when,list_of_ans_when,list_of_evidence_answer_when,rouge_l_scores
|
578 |
|
579 |
#------------------------------------------------------
|
580 |
# @st.cache
|
|
|
635 |
list_of_ans_where=""
|
636 |
list_of_evidence_answer_where="No mention of 'where'in any related documents."
|
637 |
rouge_l_scores="Not verifiable"
|
638 |
+
return list_of_ques_where,list_of_ans_where,list_of_evidence_answer_where,rouge_l_scores
|
639 |
#------------------------------------------------------
|
640 |
|
641 |
|