fixed analysis features bug for docx

This commit is contained in:
Kenny Zhang 2025-02-11 16:51:15 -05:00
parent 4ec5982223
commit 923d3fbcae

View file

@ -61,8 +61,8 @@ class DocumentIntelligenceConverter(DocumentConverter):
with open(local_path, "rb") as f: with open(local_path, "rb") as f:
file_bytes = f.read() file_bytes = f.read()
# Certain document analysis features are not availiable for filetypes (.xlsx, .pptx, .html) # Certain document analysis features are not availiable for office filetypes (.xlsx, .pptx, .html, .docx)
if extension.lower() in [".xlsx", ".pptx", ".html"]: if extension.lower() in [".xlsx", ".pptx", ".html", ".docx"]:
analysis_features = [] analysis_features = []
else: else:
analysis_features = [ analysis_features = [