SergeyO7 commited on
Commit
c309ccd
·
verified ·
1 Parent(s): 3cf8730

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ async def submit_answers(session: aiohttp.ClientSession, submit_url: str, submis
48
 
49
  async def run_and_submit_all(profile: gr.OAuthProfile | None):
50
  """
51
- Fetches all questions asynchronously, runs the CodeAgent on them, submits all answers,
52
  and displays the results.
53
  """
54
  # --- Determine HF Space Runtime URL and Repo URL ---
@@ -67,7 +67,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
67
 
68
  # 1. Instantiate Agent
69
  try:
70
- agent = CodeAgent()
71
  except Exception as e:
72
  print(f"Error instantiating agent: {e}")
73
  return f"Error initializing agent: {e}", None
 
48
 
49
  async def run_and_submit_all(profile: gr.OAuthProfile | None):
50
  """
51
+ Fetches all questions asynchronously, runs the MagAgent on them, submits all answers,
52
  and displays the results.
53
  """
54
  # --- Determine HF Space Runtime URL and Repo URL ---
 
67
 
68
  # 1. Instantiate Agent
69
  try:
70
+ agent =MagAgent()
71
  except Exception as e:
72
  print(f"Error instantiating agent: {e}")
73
  return f"Error initializing agent: {e}", None