fix: improve OCR indexing and evidence review
This commit is contained in:
@@ -82,7 +82,10 @@ def _html_report(result, batch):
|
||||
rows = []
|
||||
for row in result["rows"]:
|
||||
criterion = row["criterion"]
|
||||
evidences = "".join(f"<li>{esc(e['document'])} · 第{e['page']}页/张:{esc(e['quote'])}</li>" for e in row["evidence"])
|
||||
evidences = "".join(
|
||||
f"<li>{esc(e['document'])} · 第{e['page']}{'张幻灯片' if str(e['document']).lower().endswith('.pptx') else '页'}:{esc(e['quote'])}</li>"
|
||||
for e in row["evidence"]
|
||||
)
|
||||
missing = "、".join(row["missing_evidence"] or [])
|
||||
rows.append(f"<section><h3>{esc(criterion['name'])}({esc(row['final_score'])} / {criterion['max_score']})</h3>"
|
||||
f"<p>模型原始分:{esc(row['model_score'])};教师修改分:{esc(row['teacher_score'])};状态:{esc(row['status'])}</p>"
|
||||
|
||||
Reference in New Issue
Block a user