Skip to content

Commit

Permalink
feat(pptx): support image description with LLM for pptx files
Browse files Browse the repository at this point in the history
  • Loading branch information
masquare committed Jan 27, 2025
1 parent 6e5c84e commit a30d468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ dependencies = [
"charset-normalizer",
"openai",
"azure-ai-documentintelligence",
"azure-identity"
"azure-identity",
"boto3>=1.36.6",
]

[project.urls]
Expand Down
4 changes: 3 additions & 1 deletion src/markitdown/_markitdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,9 @@ def convert(self, local_path, **kwargs) -> Union[None, DocumentConverterResult]:

if not llm_description:
try:
alt_text = shape._element._nvXxPr.cNvPr.attrib.get("descr", "")
alt_text = shape._element._nvXxPr.cNvPr.attrib.get(
"descr", ""
)
except Exception:
# Unable to get alt text
pass
Expand Down

0 comments on commit a30d468

Please sign in to comment.