Skip to content

Commit

Permalink
fix: fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Jul 29, 2024
1 parent 0773936 commit 1db194a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloai/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def docx_to_str(file_path: str | pathlib.Path) -> str:
str: The extracted text from the docx file.
"""
document = docx.Document(file_path)
document = docx.Document(str(file_path))
return " ".join([paragraph.text for paragraph in document.paragraphs])


Expand Down

0 comments on commit 1db194a

Please sign in to comment.