Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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 =
|
| 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
|