Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def zero_gpu_check():
|
|
| 54 |
# Persistent Hugging Face Cache
|
| 55 |
# ============================================================
|
| 56 |
|
| 57 |
-
CACHE_VERSION = "
|
| 58 |
|
| 59 |
CACHE_FILE_NAME = "gaia_answer_cache.json"
|
| 60 |
|
|
@@ -306,7 +306,7 @@ class BasicAgent:
|
|
| 306 |
"content": prompt,
|
| 307 |
},
|
| 308 |
],
|
| 309 |
-
max_tokens=
|
| 310 |
temperature=0,
|
| 311 |
reasoning_format="hidden",
|
| 312 |
)
|
|
@@ -1645,10 +1645,31 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 1645 |
# Add answer for submission
|
| 1646 |
# ====================================================
|
| 1647 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1648 |
answers_payload.append({
|
| 1649 |
"task_id": task_id,
|
| 1650 |
"submitted_answer": submitted_answer,
|
| 1651 |
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1652 |
|
| 1653 |
results_log.append({
|
| 1654 |
"Task ID": task_id,
|
|
|
|
| 54 |
# Persistent Hugging Face Cache
|
| 55 |
# ============================================================
|
| 56 |
|
| 57 |
+
CACHE_VERSION = "v6"
|
| 58 |
|
| 59 |
CACHE_FILE_NAME = "gaia_answer_cache.json"
|
| 60 |
|
|
|
|
| 306 |
"content": prompt,
|
| 307 |
},
|
| 308 |
],
|
| 309 |
+
max_tokens=800,
|
| 310 |
temperature=0,
|
| 311 |
reasoning_format="hidden",
|
| 312 |
)
|
|
|
|
| 1645 |
# Add answer for submission
|
| 1646 |
# ====================================================
|
| 1647 |
|
| 1648 |
+
if not submitted_answer:
|
| 1649 |
+
print(
|
| 1650 |
+
f"SKIPPED: {task_id} "
|
| 1651 |
+
"(agent returned empty answer)"
|
| 1652 |
+
)
|
| 1653 |
+
|
| 1654 |
+
results_log.append({
|
| 1655 |
+
"Task ID": task_id,
|
| 1656 |
+
"Question": question_text,
|
| 1657 |
+
"Submitted Answer": "SKIPPED",
|
| 1658 |
+
})
|
| 1659 |
+
|
| 1660 |
+
continue
|
| 1661 |
+
|
| 1662 |
+
|
| 1663 |
answers_payload.append({
|
| 1664 |
"task_id": task_id,
|
| 1665 |
"submitted_answer": submitted_answer,
|
| 1666 |
})
|
| 1667 |
+
|
| 1668 |
+
results_log.append({
|
| 1669 |
+
"Task ID": task_id,
|
| 1670 |
+
"Question": question_text,
|
| 1671 |
+
"Submitted Answer": submitted_answer,
|
| 1672 |
+
})
|
| 1673 |
|
| 1674 |
results_log.append({
|
| 1675 |
"Task ID": task_id,
|