mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 13:22:41 +02:00
fix: update Azure Document Intelligence parser to use prebuilt-layout model
This commit is contained in:
parent
649f315dba
commit
bb5b90e5bd
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ async def parse_with_azure_doc_intelligence(file_path: str) -> str:
|
||||||
async with client:
|
async with client:
|
||||||
with open(file_path, "rb") as f:
|
with open(file_path, "rb") as f:
|
||||||
poller = await client.begin_analyze_document(
|
poller = await client.begin_analyze_document(
|
||||||
"prebuilt-read",
|
"prebuilt-layout",
|
||||||
body=f,
|
body=f,
|
||||||
output_content_format=DocumentContentFormat.MARKDOWN,
|
output_content_format=DocumentContentFormat.MARKDOWN,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue