fixed analysis features bug for docx
This commit is contained in:
parent
4ec5982223
commit
923d3fbcae
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue