Skip to content

Commit

Permalink
tutorial27
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed Jan 3, 2024
1 parent 96b1a55 commit a5eabc0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tutorial27/image_extraction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from langchain.document_loaders import PyPDFLoader
loader=PyPDFLoader(file_path="india.pdf",extract_images=True)
docs=loader.load_and_split()
print(docs[26])
9 changes: 9 additions & 0 deletions tutorial27/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from langchain.document_loaders import PyPDFLoader
loader=PyPDFLoader(file_path="india.pdf")
docs=loader.load_and_split()
#for doc in docs:
#print(doc)
#print("========================================")

for i in range(len(docs)):
print(docs[i].page_content+"\n\n")
Binary file modified tutorial27/tutorial27.pptx
Binary file not shown.

0 comments on commit a5eabc0

Please sign in to comment.