Skip to content

Commit

Permalink
fix file_input type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj committed Jul 5, 2024
1 parent 8b96176 commit e77d22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def _create_job(
file_name = extra_info["file_name"]
mime_type = mimetypes.guess_type(file_name)[0]
files = {"file": (file_name, file_input, mime_type)}
elif isinstance(file_input, str):
elif isinstance(file_input, (str, Path)):
file_path = str(file_input)
file_ext = os.path.splitext(file_path)[1]
if file_ext not in SUPPORTED_FILE_TYPES:
Expand Down

0 comments on commit e77d22f

Please sign in to comment.