mirjam-m commited on
Commit
2c4372e
·
1 Parent(s): 51af745
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ class BasicAgent:
29
  print(f"Agent received question (first 50 chars): {question[:50]}...")
30
  prompt = f"""
31
  You are a general AI assistant. I will ask you a question.
32
- Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
33
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
34
  If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
35
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
@@ -104,7 +104,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
104
  results_log = []
105
  answers_payload = []
106
  print(f"Running agent on {len(questions_data)} questions...")
107
- for item in questions_data[:1]:
108
  task_id = item.get("task_id")
109
  question_text = item.get("question")
110
  if not task_id or question_text is None:
 
29
  print(f"Agent received question (first 50 chars): {question[:50]}...")
30
  prompt = f"""
31
  You are a general AI assistant. I will ask you a question.
32
+ Report your thoughts,always use at least 2 sources to double check your answer, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
33
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
34
  If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
35
  If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
 
104
  results_log = []
105
  answers_payload = []
106
  print(f"Running agent on {len(questions_data)} questions...")
107
+ for item in questions_data:
108
  task_id = item.get("task_id")
109
  question_text = item.get("question")
110
  if not task_id or question_text is None: