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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
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:
 
146
  continue
147
  try:
148
  #answer = await agent.run(question_text) # await coroutine
149
+ answer = asyncio.run(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: