Skip to content

Commit fd3209f

Browse files
committed
fix file content
1 parent 59545b3 commit fd3209f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/axiomatic/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, ax_client: Axiomatic):
2222
def pdf_from_url(self, url: str) -> MdResponse:
2323
"""Download a PDF document from a URL and parse it into a Markdown response."""
2424
file = requests.get(url)
25-
response = self.ax_client.document.parse(file=file)
25+
response = self.ax_client.document.parse(file=file.content)
2626
return response.content
2727

2828
def pdf_from_file(self, path: str) -> MdResponse:

0 commit comments

Comments
 (0)