Skip to content

Commit 5bcc81c

Browse files
committed
fixed???
1 parent 58d9488 commit 5bcc81c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/axiomatic/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import requests
33
import os
44
import time
5-
from typing import Dict, List
5+
from typing import Dict, List, Union, Optional
66

77
from .base_client import BaseClient, AsyncBaseClient
88
from . import ParseResponse
@@ -34,9 +34,9 @@ def create_report(self, response: EquationExtractionResponse, path: str):
3434

3535
def analyze_equations(
3636
self,
37-
file_path: str | None = None,
38-
url_path: str | None = None
39-
) -> EquationExtractionResponse | None:
37+
file_path: Optional[str] = None,
38+
url_path: Optional[str] = None
39+
) -> Optional[EquationExtractionResponse]:
4040
if file_path:
4141
with open(file_path, "rb") as file:
4242
response = self._ax_client.document.equation.from_pdf(document=file)
@@ -45,7 +45,7 @@ def analyze_equations(
4545
if "arxiv" in url_path and "abs" in url_path:
4646
url_path = url_path.replace("abs", "pdf")
4747

48-
response = self._ax_client.document.equation.from_pdf(url=url_path)
48+
response = self._ax_client.document.equation.from_pdf(document_url=url_path)
4949

5050
else:
5151
print("Please provide either a file path or a URL to analyze.")

0 commit comments

Comments
 (0)