Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def receive_pdf_data():
|
|
| 62 |
# keyword = json.loads(keyword)
|
| 63 |
print(pdfLink,keyword)
|
| 64 |
global pdf_content
|
| 65 |
-
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink],
|
| 66 |
|
| 67 |
if pdf_content is None:
|
| 68 |
return jsonify({"error": "No valid PDF content found."}), 404
|
|
|
|
| 62 |
# keyword = json.loads(keyword)
|
| 63 |
print(pdfLink,keyword)
|
| 64 |
global pdf_content
|
| 65 |
+
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], keyword)
|
| 66 |
|
| 67 |
if pdf_content is None:
|
| 68 |
return jsonify({"error": "No valid PDF content found."}), 404
|