Skip to content

Commit 6ccc59f

Browse files
committed
last try
1 parent 5c355fd commit 6ccc59f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/axiomatic/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def analyze_equations(
5151
if "arxiv" in url_path and "abs" in url_path:
5252
url_path = url_path.replace("abs", "pdf")
5353
file = requests.get(url_path)
54-
response = self._ax_client.document.equation.from_pdf(document=file.content)
54+
from io import BytesIO
55+
pdf_file = BytesIO(file.content)
56+
response = self._ax_client.document.equation.from_pdf(document=pdf_file)
5557

5658
elif parsed_paper:
5759
response = EquationExtractionResponse.model_validate(

0 commit comments

Comments
 (0)