Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def receive_pdf_data():
|
|
| 46 |
# keyword = json.loads(keyword)
|
| 47 |
print(pdfLink,keyword)
|
| 48 |
global pdf_content
|
| 49 |
-
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], keyword)
|
| 50 |
|
| 51 |
if pdf_content is None:
|
| 52 |
return jsonify({"error": "No valid PDF content found."}), 404
|
|
|
|
| 46 |
# keyword = json.loads(keyword)
|
| 47 |
print(pdfLink,keyword)
|
| 48 |
global pdf_content
|
| 49 |
+
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], [keyword])
|
| 50 |
|
| 51 |
if pdf_content is None:
|
| 52 |
return jsonify({"error": "No valid PDF content found."}), 404
|