Skip to content

Commit

Permalink
Update llama_parse/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Logan <[email protected]>
  • Loading branch information
hexapode and logan-markewich authored Sep 10, 2024
1 parent 1c45339 commit 42a98f9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,7 @@ async def aget_images(
image["path"] = image_path
image["job_id"] = job_id

if isinstance(result["file_path"], str):
image["original_file_path"] = result["file_path"]
else:
image["original_file_path"] = None
image["original_file_path"] = result.get("file_path", None)

image["page_number"] = page["page"]
with open(image_path, "wb") as f:
Expand Down

0 comments on commit 42a98f9

Please sign in to comment.