Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix: store the str path instead of the Path object (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
boarush authored Feb 3, 2024
1 parent 4a96830 commit 965a254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama_hub/file/pymu_pdf/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Read PDF files using PyMuPDF library."""

from pathlib import Path
from typing import Dict, List, Optional, Union

Expand Down Expand Up @@ -57,7 +58,7 @@ def load(
if not extra_info:
extra_info = {}
extra_info["total_pages"] = len(doc)
extra_info["file_path"] = file_path
extra_info["file_path"] = str(file_path)

# return list of documents
return [
Expand Down

0 comments on commit 965a254

Please sign in to comment.