robertselvam commited on
Commit
5b0b305
·
1 Parent(s): 34fed9c

Update incompletesentencefinder.py

Browse files
Files changed (1) hide show
  1. incompletesentencefinder.py +1 -1
incompletesentencefinder.py CHANGED
@@ -55,7 +55,7 @@ class IncompleteSentenceFinder:
55
  """
56
  try:
57
  # Open the PDF file using PyMuPDF's fitz library
58
- doc = fitz.open(pdf_file)
59
  incomplete_text = ""
60
 
61
  # Iterate through each page in the PDF document and extract the text
 
55
  """
56
  try:
57
  # Open the PDF file using PyMuPDF's fitz library
58
+ doc = fitz.open(pdf_file.name)
59
  incomplete_text = ""
60
 
61
  # Iterate through each page in the PDF document and extract the text