Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/extras/code_samples/bank_account_details_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/bank_account_details_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/bank_check_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/barcode_reader_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/carte_grise_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/cropper_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/custom_v1.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")
Expand All @@ -10,7 +11,7 @@ my_endpoint = mindee_client.create_endpoint(
)

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Parse the file.
# The endpoint must be specified since it cannot be determined from the class.
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")
Expand All @@ -17,7 +18,7 @@ my_endpoint = mindee_client.create_endpoint(
)

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Parse the file.
# The endpoint must be specified since it cannot be determined from the class.
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/default_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

from mindee.v1 import Client, AsyncPredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")
Expand All @@ -17,7 +18,7 @@ my_endpoint = mindee_client.create_endpoint(
)

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Parse the file.
# The endpoint must be specified since it cannot be determined from the class.
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/expense_receipts_v5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/expense_receipts_v5_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/financial_document_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/financial_document_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/idcard_fr_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/idcard_fr_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/international_id_v2_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/invoice_splitter_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/invoices_v4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/invoices_v4_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/multi_receipts_detector_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/passport_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, PredictResponse, product
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and parse it.
result: PredictResponse = mindee_client.parse(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/workflow_execution.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

from mindee.v1 import Client, WorkflowResponse
from mindee.v1.parsing.common import ExecutionPriority
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

workflow_id = "workflow-id"

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Send the file to the workflow.
result: WorkflowResponse = mindee_client.execute_workflow(
Expand Down
3 changes: 2 additions & 1 deletion docs/extras/code_samples/workflow_ots_rag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

from mindee.v1 import Client, product, AsyncPredictResponse
from mindee import PathInput

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
input_doc = PathInput("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
Expand Down
Loading
Loading