Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -193,10 +193,16 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 193 |
if not task_id or question_text is None:
|
| 194 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 195 |
continue
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
|
| 201 |
if not answers_payload:
|
| 202 |
print("Agent did not produce any answers to submit.")
|
|
|
|
| 193 |
if not task_id or question_text is None:
|
| 194 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 195 |
continue
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
#select question we want to focus
|
| 199 |
+
if "excel" in question_text.lower() or "mp3" in question_text.lower() or "chess" in question_text.lower():
|
| 200 |
+
file_path = await check_n_load_attach(session, task_id)
|
| 201 |
+
result = await process_question(agent, question_text, task_id, file_path, results_log)
|
| 202 |
+
if result:
|
| 203 |
+
answers_payload.append(result)
|
| 204 |
+
else:
|
| 205 |
+
print("Skipping unrelated question.")
|
| 206 |
|
| 207 |
if not answers_payload:
|
| 208 |
print("Agent did not produce any answers to submit.")
|