Skip to content

Commit a7f9d3d

Browse files
posix path error fix in pathlib
1 parent 1946beb commit a7f9d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/document_sources/local_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_documents_from_file_by_path(file_path,file_name):
1919
file_path = Path(file_path)
2020
if file_path.exists():
2121
logging.info(f'file {file_name} processing')
22-
loader = PyPDFLoader(file_path)
22+
loader = PyPDFLoader(str(file_path))
2323
pages = loader.load_and_split()
2424
else:
2525
logging.info(f'File {file_name} does not exist')

0 commit comments

Comments
 (0)