Spaces:
Running
Running
Commit ·
57b428c
1
Parent(s): 7d12497
fix: citation_id string extraction, UI landing page
Browse files- inference.py +3 -1
inference.py
CHANGED
|
@@ -347,7 +347,9 @@ async def run_task4() -> tuple[float, List[float], int]:
|
|
| 347 |
refs = obs.get("available_references", [])[:4]
|
| 348 |
verified: list = []
|
| 349 |
|
| 350 |
-
for
|
|
|
|
|
|
|
| 351 |
step_num += 1
|
| 352 |
nav = await env_step({"task": "citation_verification",
|
| 353 |
"action_type": "check_citation",
|
|
|
|
| 347 |
refs = obs.get("available_references", [])[:4]
|
| 348 |
verified: list = []
|
| 349 |
|
| 350 |
+
for ref in refs:
|
| 351 |
+
# refs is a list of dicts — extract the string id
|
| 352 |
+
ref_id = ref.get("id", str(ref)) if isinstance(ref, dict) else str(ref)
|
| 353 |
step_num += 1
|
| 354 |
nav = await env_step({"task": "citation_verification",
|
| 355 |
"action_type": "check_citation",
|