From 96377cb81ec0423a1cb09e2d604f51cd3e07bcc0 Mon Sep 17 00:00:00 2001 From: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com> Date: Tue, 27 May 2025 01:50:53 +0530 Subject: [PATCH] Update base_models.py Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com> --- docling/datamodel/base_models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docling/datamodel/base_models.py b/docling/datamodel/base_models.py index d48dc0f4..a313bec3 100644 --- a/docling/datamodel/base_models.py +++ b/docling/datamodel/base_models.py @@ -37,12 +37,11 @@ class ConversionStatus(str, Enum): class InputFormat(str, Enum): """A document format supported by document backend parsers.""" - PDF = "pdf" DOCX = "docx" - XLSM = "xlsm" PPTX = "pptx" HTML = "html" IMAGE = "image" + PDF = "pdf" ASCIIDOC = "asciidoc" MD = "md" CSV = "csv" @@ -71,7 +70,7 @@ FormatToExtensions: Dict[InputFormat, List[str]] = { InputFormat.IMAGE: ["jpg", "jpeg", "png", "tif", "tiff", "bmp"], InputFormat.ASCIIDOC: ["adoc", "asciidoc", "asc"], InputFormat.CSV: ["csv"], - InputFormat.XLSX: ["xlsx"], + InputFormat.XLSX: ["xlsx","xlsm"], InputFormat.XML_USPTO: ["xml", "txt"], InputFormat.JSON_DOCLING: ["json"], }