Skip to content

Commit 5c355fd

Browse files
committed
fixing clinet
1 parent d3282ee commit 5c355fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/axiomatic/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ def analyze_equations(
5050
elif url_path:
5151
if "arxiv" in url_path and "abs" in url_path:
5252
url_path = url_path.replace("abs", "pdf")
53-
response = requests.get(url_path)
54-
from io import BytesIO
55-
pdf_content = BytesIO(response.content)
56-
response = self._ax_client.document.equation.from_pdf(document=pdf_content)
53+
file = requests.get(url_path)
54+
response = self._ax_client.document.equation.from_pdf(document=file.content)
5755

5856
elif parsed_paper:
5957
response = EquationExtractionResponse.model_validate(

0 commit comments

Comments
 (0)