cowrycode commited on
Commit
b5883f9
·
verified ·
1 Parent(s): d2b051e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -145,7 +145,8 @@ 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
  answers_payload.append({"task_id": task_id, "submitted_answer": answer})
150
  print(f"Answered Task {task_id}: {answer[:50]}...")
151
  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
+ answer = asyncio.run(agent.run(question)) # 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: