sebastianfrench commited on
Commit
6e89871
·
1 Parent(s): f6bd140
Files changed (2) hide show
  1. agents/search_agent.py +1 -3
  2. app.py +1 -5
agents/search_agent.py CHANGED
@@ -23,9 +23,7 @@ class SearchAgent:
23
 
24
  if __name__ == "__main__":
25
  #question = "In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?"
26
- question = """Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.
27
-
28
- What does Teal'c say in response to the question "Isn't that hot?"""
29
  agent = SearchAgent()
30
  submit_answer = agent(question)
31
 
 
23
 
24
  if __name__ == "__main__":
25
  #question = "In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?"
26
+ question = """How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia."""
 
 
27
  agent = SearchAgent()
28
  submit_answer = agent(question)
29
 
app.py CHANGED
@@ -71,11 +71,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
71
  print(f"Skipping item with missing task_id or question: {item}")
72
  continue
73
  try:
74
- submitted_answer = ""
75
- if question_text == "How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.":
76
- submitted_answer = agent(question_text)
77
- else:
78
- submitted_answer= "In progress"
79
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
80
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
81
  except Exception as e:
 
71
  print(f"Skipping item with missing task_id or question: {item}")
72
  continue
73
  try:
74
+ submitted_answer = agent(question_text)
 
 
 
 
75
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
76
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
77
  except Exception as e: