Skip to content

Commit

Permalink
Merge pull request #63 from CambioML/seis-dev
Browse files Browse the repository at this point in the history
chore: update readme
  • Loading branch information
lingjiekong authored Nov 17, 2024
2 parents 6d7baed + 460838e commit 1a23b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ ap = AnyParser(api_key=example_apikey)
To extract data synchronously and receive immediate results:
```python
# Extract content from the file and get the markdown output along with processing time
markdown, total_time = ap.extract(file_path="./data/test.pdf")
markdown, total_time = ap.parse(file_path="./data/test.pdf")
```

### 4. Run Asynchronous Extraction
For asynchronous extraction, send the file for processing and fetch results later:
```python
# Send the file to begin asynchronous extraction
file_id = ap.async_extract(file_path="./data/test.pdf")
file_id = ap.async_parse(file_path="./data/test.pdf")

# Fetch the extracted content using the file ID
markdown = ap.async_fetch(file_id=file_id)
Expand Down

0 comments on commit 1a23b59

Please sign in to comment.