Commit
·
387a232
1
Parent(s):
be75c32
reverted app.py to original
Browse files
app.py
CHANGED
|
@@ -73,11 +73,14 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 73 |
for item in questions_data:
|
| 74 |
task_id = item.get("task_id")
|
| 75 |
question_text = item.get("question")
|
|
|
|
| 76 |
if not task_id or question_text is None:
|
| 77 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 78 |
continue
|
| 79 |
try:
|
| 80 |
-
submitted_answer = agent(
|
|
|
|
|
|
|
| 81 |
answers_payload.append(
|
| 82 |
{"task_id": task_id, "submitted_answer": submitted_answer}
|
| 83 |
)
|
|
|
|
| 73 |
for item in questions_data:
|
| 74 |
task_id = item.get("task_id")
|
| 75 |
question_text = item.get("question")
|
| 76 |
+
file_name = item.get("file_name")
|
| 77 |
if not task_id or question_text is None:
|
| 78 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 79 |
continue
|
| 80 |
try:
|
| 81 |
+
submitted_answer = agent(
|
| 82 |
+
question_text, task_id, file_name, DEFAULT_API_URL
|
| 83 |
+
)
|
| 84 |
answers_payload.append(
|
| 85 |
{"task_id": task_id, "submitted_answer": submitted_answer}
|
| 86 |
)
|