Synnove commited on
Commit
18806b4
·
verified ·
1 Parent(s): 20fb90e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -85,18 +85,18 @@ def run_once(state):
85
  if questions_data is None or len(questions_data) == 0:
86
  return "No questions found or failed to load.", None
87
 
88
- question = questions_data[0]
89
  question_text = question["question"]
90
  task_id = question["task_id"]
91
  print(f"\nTask ID: {task_id}")
92
  print(f"Question: {question_text}")
93
 
94
- try:
95
- answer = agent_codeagent(question_text)
96
- output = f"Answer to task {task_id}:\n{answer}"
97
- return output, output
98
- except Exception as e:
99
- return f"Error running agent: {e}", None
100
 
101
 
102
 
 
85
  if questions_data is None or len(questions_data) == 0:
86
  return "No questions found or failed to load.", None
87
 
88
+ question = questions_data[1]
89
  question_text = question["question"]
90
  task_id = question["task_id"]
91
  print(f"\nTask ID: {task_id}")
92
  print(f"Question: {question_text}")
93
 
94
+ # try:
95
+ # answer = agent_codeagent(question_text)
96
+ # output = f"Answer to task {task_id}:\n{answer}"
97
+ # return output, output
98
+ # except Exception as e:
99
+ # return f"Error running agent: {e}", None
100
 
101
 
102