muddasser commited on
Commit
2e432a1
·
verified ·
1 Parent(s): 7c2cb12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ nlp = load_spacy_model()
17
  def extract_text_from_pdf(pdf_file):
18
  text = ''
19
  with pdfplumber.open(pdf_file) as pdf:
20
- for page in pdf.pagesSNS
21
  page_text = page.extract_text()
22
  if page_text:
23
  text += page_text
 
17
  def extract_text_from_pdf(pdf_file):
18
  text = ''
19
  with pdfplumber.open(pdf_file) as pdf:
20
+ for page in pdf.pages:
21
  page_text = page.extract_text()
22
  if page_text:
23
  text += page_text