Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,11 +70,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 70 |
submit_url = f"{api_url}/submit"
|
| 71 |
|
| 72 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 73 |
-
try:
|
| 74 |
-
|
| 75 |
-
except Exception as e:
|
| 76 |
-
|
| 77 |
-
|
| 78 |
#In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
|
| 79 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 80 |
print(agent_code)
|
|
@@ -125,6 +125,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 125 |
#3A
|
| 126 |
|
| 127 |
async def run_all_questions(questions_data):
|
|
|
|
| 128 |
answers_payload = []
|
| 129 |
for item in questions_data:
|
| 130 |
task_id = item.get("task_id")
|
|
|
|
| 70 |
submit_url = f"{api_url}/submit"
|
| 71 |
|
| 72 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 73 |
+
# try:
|
| 74 |
+
# agent = BasicAgent()
|
| 75 |
+
# except Exception as e:
|
| 76 |
+
# print(f"Error instantiating agent: {e}")
|
| 77 |
+
# return f"Error initializing agent: {e}", None
|
| 78 |
#In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
|
| 79 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 80 |
print(agent_code)
|
|
|
|
| 125 |
#3A
|
| 126 |
|
| 127 |
async def run_all_questions(questions_data):
|
| 128 |
+
agent = BasicAgent()
|
| 129 |
answers_payload = []
|
| 130 |
for item in questions_data:
|
| 131 |
task_id = item.get("task_id")
|