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

Commit

Permalink
moved urllib3 import inside load_data() for MinioReader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdinando Simonetti committed Feb 9, 2024
1 parent 88411bc commit 61a25e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llama_hub/minio/minio-client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from llama_index.readers.base import BaseReader
from llama_index.readers.schema.base import Document

import urllib3

class MinioReader(BaseReader):
"""General reader for any Minio file or directory."""

Expand Down Expand Up @@ -86,6 +84,7 @@ def __init__(
def load_data(self) -> List[Document]:
"""Load file(s) from Minio."""
from minio import Minio
import urllib3

minio_client = Minio(
self.minio_endpoint,
Expand Down

0 comments on commit 61a25e6

Please sign in to comment.