Skip to content

Commit

Permalink
fix: update adobe_loader (#399) bump:patch
Browse files Browse the repository at this point in the history
* Update adobe_loader.py

fix:When initializing the Document, extra_info was not added to the metadata.

* Update adobe_loader.py

Change the method of checking whether extra_info is None.
  • Loading branch information
a652 authored Oct 16, 2024
1 parent c793856 commit 4764b0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/kotaemon/kotaemon/loaders/adobe_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def load_data(
"page_label": page_number,
"file_name": filename,
"file_path": filepath,
**(extra_info if extra_info else {}),
},
)
)
Expand All @@ -161,6 +162,7 @@ def load_data(
"page_label": page_number,
"file_name": filename,
"file_path": filepath,
**(extra_info if extra_info else {}),
},
metadata_template="",
metadata_seperator="",
Expand All @@ -178,6 +180,7 @@ def load_data(
"page_label": page_number,
"file_name": filename,
"file_path": filepath,
**(extra_info if extra_info else {}),
},
metadata_template="",
metadata_seperator="",
Expand Down

0 comments on commit 4764b0e

Please sign in to comment.