From 460838ed2c20034f5a4fa650bf4374c4190e1d1f Mon Sep 17 00:00:00 2001 From: SeisSerenata Date: Sun, 17 Nov 2024 03:31:34 +0000 Subject: [PATCH] chore: update readme. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b64c09d..7d547e6 100644 --- a/README.md +++ b/README.md @@ -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)