We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3282ee commit 5c355fdCopy full SHA for 5c355fd
src/axiomatic/client.py
@@ -50,10 +50,8 @@ def analyze_equations(
50
elif url_path:
51
if "arxiv" in url_path and "abs" in url_path:
52
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)
+ file = requests.get(url_path)
+ response = self._ax_client.document.equation.from_pdf(document=file.content)
57
58
elif parsed_paper:
59
response = EquationExtractionResponse.model_validate(
0 commit comments