Marthee commited on
Commit
8374dbd
·
verified ·
1 Parent(s): 725aca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def download_pdf():
45
  print("Extracted PDF Link:", pdf_link)
46
  print("Extracted Keywords:", keyword)
47
  createDF=False
48
- pdf_content = Find_Hyperlinking_text.annotate_text_from_pdf([pdf_link], keyword)[0]
 
49
  if pdf_content is None:
50
  return "PDF content not found.", 404
51
 
 
45
  print("Extracted PDF Link:", pdf_link)
46
  print("Extracted Keywords:", keyword)
47
  createDF=False
48
+
49
+ pdfbytes = findspecsv1.extract_section_under_header(pdfLink, keyword)[0]
50
  if pdf_content is None:
51
  return "PDF content not found.", 404
52