robertselvam commited on
Commit
86fecb6
·
1 Parent(s): 5b0b305

Update incorrect_sentence_finder.py

Browse files
Files changed (1) hide show
  1. incorrect_sentence_finder.py +1 -1
incorrect_sentence_finder.py CHANGED
@@ -48,7 +48,7 @@ class IncorrectSentenceFinder:
48
  """
49
  try:
50
  # Open the PDF file using PyMuPDF's fitz library
51
- doc = fitz.open(pdf_file)
52
  incorrect_sentences = ''
53
  # Iterate through each page in the PDF document and extract the text
54
  for page in doc:
 
48
  """
49
  try:
50
  # Open the PDF file using PyMuPDF's fitz library
51
+ doc = fitz.open(pdf_file.name)
52
  incorrect_sentences = ''
53
  # Iterate through each page in the PDF document and extract the text
54
  for page in doc: