From e5a1a077d30bce74ab7714c52d3ab9e5c44b2b5a Mon Sep 17 00:00:00 2001 From: Mohey El-Din Badr Date: Wed, 7 May 2025 12:27:29 +0300 Subject: [PATCH] Add other types --- docling/datamodel/document.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docling/datamodel/document.py b/docling/datamodel/document.py index 5bb0352c..984cf02b 100644 --- a/docling/datamodel/document.py +++ b/docling/datamodel/document.py @@ -376,8 +376,13 @@ class _DocumentConversionInput(BaseModel): mime = FormatToMimeType[InputFormat.JSON_DOCLING][0] elif ext in FormatToExtensions[InputFormat.PDF]: mime = FormatToMimeType[InputFormat.PDF][0] - elif ext in FormatToExtentions[InputFormat.DOCX]: + elif ext in FormatToExtensions[InputFormat.DOCX]: mime = FormatToMimeType[InputFormat.DOCX][0] + elif ext in FormatToExtensions[InputFormat.PPTX]: + mime = FormatToMimeType[InputFormat.PPTX][0] + elif ext in FormatToExtensions[InputFormat.XLSX]: + mime = FormatToMimeType[InputFormat.XLSX][0] + return mime @staticmethod