update loaders
This commit is contained in:
parent
621a0fe686
commit
80854c4bcd
|
|
@ -30,7 +30,7 @@ class UnstructuredPaddleImageLoader(UnstructuredFileLoader):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
filepath = "../content/samples/test.jpg"
|
filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "content", "samples", "test.jpg")
|
||||||
loader = UnstructuredPaddleImageLoader(filepath, mode="elements")
|
loader = UnstructuredPaddleImageLoader(filepath, mode="elements")
|
||||||
docs = loader.load()
|
docs = loader.load()
|
||||||
for doc in docs:
|
for doc in docs:
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class UnstructuredPaddlePDFLoader(UnstructuredFileLoader):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
filepath = "../content/samples/test.pdf"
|
filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "content", "samples", "test.pdf")
|
||||||
loader = UnstructuredPaddlePDFLoader(filepath, mode="elements")
|
loader = UnstructuredPaddlePDFLoader(filepath, mode="elements")
|
||||||
docs = loader.load()
|
docs = loader.load()
|
||||||
for doc in docs:
|
for doc in docs:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue