zhenyundeng commited on
Commit
a144627
·
1 Parent(s): 8bc885b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -649,7 +649,7 @@ def averitec_search(claim, generate_question, speaker="they", check_date="2024-0
649
  store_folder = "averitec/data/store/retrieved_docs"
650
  #
651
  index = 0
652
- questions = [q["question"] for q in generate_question][:5]
653
  # questions = [q["question"] for q in generate_question] # ori
654
 
655
  # check the date of the claim
@@ -919,7 +919,7 @@ def rerank_questions(claim, bm25_qas, topk=3):
919
  return top3_qa_pairs
920
 
921
 
922
- @spaces.GPU
923
  def Googleretriever(query, sources):
924
  # ----- Generate QA pairs using AVeriTeC
925
  # step 1: generate questions for the query/claim using Bloom
 
649
  store_folder = "averitec/data/store/retrieved_docs"
650
  #
651
  index = 0
652
+ questions = [q["question"] for q in generate_question][:3]
653
  # questions = [q["question"] for q in generate_question] # ori
654
 
655
  # check the date of the claim
 
919
  return top3_qa_pairs
920
 
921
 
922
+ # @spaces.GPU
923
  def Googleretriever(query, sources):
924
  # ----- Generate QA pairs using AVeriTeC
925
  # step 1: generate questions for the query/claim using Bloom