Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Sep 10, 2024
1 parent 8aa08c5 commit f603f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ async def _aget_json(

if not isinstance(file_path, (bytes, BufferedIOBase)):
result["file_path"] = str(file_path)

return [result]
except Exception as e:
file_repr = file_path if isinstance(file_path, str) else "<bytes/buffer>"
Expand Down Expand Up @@ -507,9 +507,9 @@ async def aget_images(

image["path"] = image_path
image["job_id"] = job_id

image["original_file_path"] = result.get("file_path", None)

image["page_number"] = page["page"]
with open(image_path, "wb") as f:
image_url = f"{self.base_url}/api/parsing/job/{job_id}/result/image/{image_name}"
Expand Down

0 comments on commit f603f50

Please sign in to comment.