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

fix(PyMuPDF): store the str path instead of the Path object #917

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading