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 e9b55eb commit 612045bCopy full SHA for 612045b
src/axiomatic/client.py
@@ -50,10 +50,10 @@ 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
- file = requests.get(url_path)
+ url_file = requests.get(url_path)
54
from io import BytesIO
55
- pdf_file = BytesIO(file.content) # type: ignore [assignment]
56
- response = self._ax_client.document.equation.from_pdf(document=pdf_file)
+ pdf_stream = BytesIO(url_file.content)
+ response = self._ax_client.document.equation.from_pdf(document=pdf_stream)
57
58
elif parsed_paper:
59
response = EquationExtractionResponse.model_validate(
0 commit comments