Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ class BasicAgent:
|
|
| 46 |
#print(f"Agent returning fixed answer: {fixed_answer}")
|
| 47 |
#return fixed_answer
|
| 48 |
|
| 49 |
-
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 50 |
"""
|
| 51 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 52 |
and displays the results.
|
|
@@ -67,7 +67,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 67 |
|
| 68 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 69 |
try:
|
| 70 |
-
agent = BasicAgent()
|
| 71 |
except Exception as e:
|
| 72 |
print(f"Error instantiating agent: {e}")
|
| 73 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 46 |
#print(f"Agent returning fixed answer: {fixed_answer}")
|
| 47 |
#return fixed_answer
|
| 48 |
|
| 49 |
+
async def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 50 |
"""
|
| 51 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 52 |
and displays the results.
|
|
|
|
| 67 |
|
| 68 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 69 |
try:
|
| 70 |
+
agent = await BasicAgent()
|
| 71 |
except Exception as e:
|
| 72 |
print(f"Error instantiating agent: {e}")
|
| 73 |
return f"Error initializing agent: {e}", None
|