File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- from mindee import ClientV2, InferenceParameters
1+ from mindee import ClientV2, InferenceParameters, PathInput
22
33input_path = "/path/to/the/file.ext"
44api_key = "MY_API_KEY"
@@ -7,7 +7,7 @@ model_id = "MY_MODEL_ID"
77# Init a new client
88mindee_client = ClientV2(api_key)
99
10- # Set inference paramters
10+ # Set inference parameters
1111params = 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
2222response = mindee_client.enqueue_and_get_inference(
2323 input_source, params
2424)
You can’t perform that action at this time.
0 commit comments