Skip to content

Commit 8d67fa6

Browse files
author
Daniel Lorch
committed
Revert "chore: show inference results in notebook"
This reverts commit 9a37c9b.
1 parent 8b581e0 commit 8d67fa6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

notebooks/misc/e2e-example-with-multimodal-page-classification-few-shot-prompting.ipynb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,7 @@
370370
"\n",
371371
"document_dict = document.to_dict()\n",
372372
"sections_json = json.dumps(document_dict[\"sections\"][:n], indent=2)\n",
373-
"print(sections_json)\n",
374-
"\n",
375-
"for section in document.sections[:n]:\n",
376-
" print(f\"\\nSection {section.section_id} extraction result:\")\n",
377-
" extraction_result_uri = section.extraction_result_uri\n",
378-
" if extraction_result_uri:\n",
379-
" result = get_json_content(extraction_result_uri)\n",
380-
" result_json = json.dumps(result[\"inference_result\"], indent=2)\n",
381-
" print(result_json)"
373+
"print(f\"{sections_json}...\")"
382374
]
383375
},
384376
{

0 commit comments

Comments
 (0)