Marthee commited on
Commit
7928099
·
verified ·
1 Parent(s): 1f03351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -26,7 +26,6 @@ def thismain():
26
 
27
  @app.route('/view-pdf', methods=['GET'])
28
  def download_pdf():
29
- global pdf_content, pageNumTextFound
30
 
31
  # Manually parse the query parameters
32
  full_query_string = request.query_string.decode() # Get raw query string
@@ -51,7 +50,7 @@ def download_pdf():
51
 
52
  print("Extracted PDF Link:", pdf_link)
53
  print("Extracted Keywords:", keyword)
54
-
55
  if pdf_content is None:
56
  return "PDF content not found.", 404
57
 
 
26
 
27
  @app.route('/view-pdf', methods=['GET'])
28
  def download_pdf():
 
29
 
30
  # Manually parse the query parameters
31
  full_query_string = request.query_string.decode() # Get raw query string
 
50
 
51
  print("Extracted PDF Link:", pdf_link)
52
  print("Extracted Keywords:", keyword)
53
+ pdf_content, pageNumTextFound, highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], keyword)
54
  if pdf_content is None:
55
  return "PDF content not found.", 404
56