mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
Add other types
This commit is contained in:
parent
ec6bd87ab9
commit
dd6cb20562
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user