Skip to content

Commit

Permalink
fix init argument in Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisoSouza committed Mar 28, 2024
1 parent 17b2224 commit e6930cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/loaders/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def __init__(self, loader: DocumentLoader, file: str, **kwargs) -> None:

def get_load_type(self, loader, load_type, file):
if load_type == "pdfminer":
return loader(loader="pdfminer", file=file)
return loader(file=file)
return loader(file, loader="pdfminer")
return loader(file)

def load(self) -> List[Document]:
return self.loader.load()
Expand Down

0 comments on commit e6930cf

Please sign in to comment.