Skip to content

Commit

Permalink
Fix docx ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Oct 26, 2024
1 parent bef9afd commit 342840e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gpt_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -4893,7 +4893,7 @@ def file_to_doc(file,
makedirs(tmpdir, exist_ok=True)
text = docx2txt.process(file, tmpdir)
images = os.listdir(tmpdir)
docs1 = path_to_docs_func([os.path.join(tmpdir, x) for x in images])
docs1.extend(path_to_docs_func([os.path.join(tmpdir, x) for x in images]))
except Exception as e:
print("docx images failure: %s" % str(e))

Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "7a756e9b132fc32382803b9b0e7cc90467bec883"
__version__ = "bef9afd4cee37c93baaea3e6402d9e260ac59998"

0 comments on commit 342840e

Please sign in to comment.