Skip to content

Commit adbdcd7

Browse files
Fix arg name in mime_type() to path (#148)
Fix arg name in mime_type()
1 parent 806ccce commit adbdcd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/unstract/sdk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
__version__ = "0.55.0rc2"
1+
__version__ = "0.55.0rc3"
2+
23

34
def get_sdk_version():
45
"""Returns the SDK version."""

src/unstract/sdk/adapters/x2text/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def process_document(
7373
if not local_storage.exists(input_file_path):
7474
fs.download(from_path=input_file_path, to_path=input_file_path)
7575
with open(input_file_path, "rb") as input_f:
76-
mime_type = local_storage.mime_type(input_file=input_file_path)
76+
mime_type = local_storage.mime_type(path=input_file_path)
7777
files = {"file": (input_file_path, input_f, mime_type)}
7878
response = UnstructuredHelper.make_request(
7979
unstructured_adapter_config=unstructured_adapter_config,

0 commit comments

Comments
 (0)