Add a comment to explain the role of UNSTRUCTURED_FORMATS (#909)

* Add a comment to explain the role of UNSTRUCTURED_FORMATS

* Update comments
This commit is contained in:
Li Jiang
2023-12-09 07:08:31 +08:00
committed by GitHub
parent dcde7a05b3
commit cf2ecf9cac

View File

@@ -53,7 +53,7 @@ UNSTRUCTURED_FORMATS = [
"rtf",
"rst",
"xlsx",
]
] # These formats will be parsed by the 'unstructured' library, if installed.
if HAS_UNSTRUCTURED:
TEXT_FORMATS += UNSTRUCTURED_FORMATS
TEXT_FORMATS = list(set(TEXT_FORMATS))