Skip to content

Commit

Permalink
fix extract example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sdddell committed Apr 29, 2024
1 parent 230c520 commit 31d86e9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions examples/extract_table_from_image_to_markdown.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -25,7 +25,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -54,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -75,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -85,7 +85,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -106,7 +106,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -122,7 +122,7 @@
"text/markdown": [
"| Investor Metrics | FY23 Q1 | FY23 Q2 | FY23 Q3 | FY23 Q4 | FY24 Q1 |\n",
"|:-------------------------------------------------------------------|:----------|:----------|:----------|:----------|:----------|\n",
"| Office Commercial products and cloud services revenue growth (y/y) | 7% / 13% | 7% / 14% | 13%/17% | 12% / 14% | 15% / 14% |\n",
"| Office Commercial products and cloud services revenue growth (y/y) | 7% / 13% | 7% / 14% | 13% / 17% | 12% / 14% | 15% / 14% |\n",
"| Office Consumer products and cloud services revenue growth (y/y) | 7% / 11% | (2)% / 3% | 1% / 4% | 3% / 6% | 3% / 4% |\n",
"| Office 365 Commercial seat growth (y/y) | 14% | 12% | 11% | 11% | 10% |\n",
"| Microsoft 365 Consumer subscribers (in millions) | 65.1 | 67.7 | 70.8 | 74.9 | 76.7 |\n",
Expand All @@ -143,7 +143,8 @@
"op = OpenParser(example_apikey)\n",
"content_result = op.extract(example_local_file)\n",
"\n",
"display(Markdown(content_result))\n"
"for content in content_result:\n",
" display(Markdown(content))\n"
]
},
{
Expand Down Expand Up @@ -176,7 +177,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 31d86e9

Please sign in to comment.