From 9af99473fa23ec7ea9ccced61b22353f8f4a4741 Mon Sep 17 00:00:00 2001 From: Emanuel Ferreira Date: Fri, 6 Oct 2023 07:40:46 -0300 Subject: [PATCH] fix: pdf google drive (#568) fix: pdf google drive --- CHANGELOG.md | 2 +- llama_hub/google_drive/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4639fea421..92f2055931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Smaller Features + Bug Fixes - fix: credentials path and readme improvement (#567) - +- fix: pdf google drive (#568) ### [v0.0.35] - 2023-10-05 - Loader for Macrometa GDN (#484) - adding boto3 minio doc loader (#497) diff --git a/llama_hub/google_drive/base.py b/llama_hub/google_drive/base.py index 1049cb2782..9a5456990e 100644 --- a/llama_hub/google_drive/base.py +++ b/llama_hub/google_drive/base.py @@ -287,7 +287,7 @@ def get_metadata(filename): metadata = {} for fileid_meta in fileids_meta: - filename = next(tempfile._get_candidate_names()) + filename = fileid_meta[2] filepath = os.path.join(temp_dir, filename) fileid = fileid_meta[0] final_filepath = self._download_file(fileid, filepath)