cowrycode commited on
Commit
941afae
·
verified ·
1 Parent(s): bb1db7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -145,8 +145,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
145
  print(f"Skipping item with missing task_id or question: {item}")
146
  continue
147
  try:
148
- #answer = await agent.run(question_text) # await coroutine
149
- answer = agent.run(question_text) # await coroutine
150
  answers_payload.append({"task_id": task_id, "submitted_answer": answer})
151
  print(f"Answered Task {task_id}: {answer[:50]}...")
152
  except Exception as e:
 
145
  print(f"Skipping item with missing task_id or question: {item}")
146
  continue
147
  try:
148
+ answer = await agent.run(question_text) # await coroutine
 
149
  answers_payload.append({"task_id": task_id, "submitted_answer": answer})
150
  print(f"Answered Task {task_id}: {answer[:50]}...")
151
  except Exception as e: