Skip to content

Commit af44151

Browse files
committed
deploy: f81dff6
1 parent 1ba2db2 commit af44151

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code_samples/default_v2.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mindee import ClientV2, InferenceParameters
1+
from mindee import ClientV2, InferenceParameters, PathInput
22

33
input_path = "/path/to/the/file.ext"
44
api_key = "MY_API_KEY"
@@ -7,7 +7,7 @@ model_id = "MY_MODEL_ID"
77
# Init a new client
88
mindee_client = ClientV2(api_key)
99

10-
# Set inference paramters
10+
# Set inference parameters
1111
params = InferenceParameters(
1212
# ID of the model, required.
1313
model_id=model_id,
@@ -16,9 +16,9 @@ params = InferenceParameters(
1616
)
1717

1818
# Load a file from disk
19-
input_source = mindee_client.source_from_path(input_path)
19+
input_source = PathInput(input_path)
2020

21-
# Upload the file
21+
# Send for processing
2222
response = mindee_client.enqueue_and_get_inference(
2323
input_source, params
2424
)

0 commit comments

Comments
 (0)