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
4 changes: 2 additions & 2 deletions docs/extras/code_samples/default_v2.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mindee import ClientV2, InferenceParameters
from mindee import ClientV2, InferenceParameters, PathInput

input_path = "/path/to/the/file.ext"
api_key = "MY_API_KEY"
Expand All @@ -16,7 +16,7 @@ params = InferenceParameters(
)

# Load a file from disk
input_source = mindee_client.source_from_path(input_path)
input_source = PathInput(input_path)

# Send for processing
response = mindee_client.enqueue_and_get_inference(
Expand Down
10 changes: 10 additions & 0 deletions mindee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
from mindee.input.local_response import LocalResponse
from mindee.input.page_options import PageOptions
from mindee.input.polling_options import PollingOptions
from mindee.input.sources.base_64_input import Base64Input
from mindee.input.sources.bytes_input import BytesInput
from mindee.input.sources.file_input import FileInput
from mindee.input.sources.path_input import PathInput
from mindee.input.sources.url_input_source import UrlInputSource
from mindee.parsing.common.api_response import ApiResponse
from mindee.parsing.common.async_predict_response import AsyncPredictResponse
from mindee.parsing.common.feedback_response import FeedbackResponse
Expand All @@ -18,6 +23,11 @@
"Client",
"ClientV2",
"InferenceParameters",
"FileInput",
"PathInput",
"BytesInput",
"Base64Input",
"UrlInputSource",
"LocalResponse",
"PageOptions",
"PollingOptions",
Expand Down