Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def receive_pdf_data():
|
|
| 42 |
return jsonify({"error": "Both 'pdfLink' and 'keyword' must be provided."}), 400
|
| 43 |
|
| 44 |
try:
|
| 45 |
-
# Call the function to process the PDF
|
| 46 |
-
keyword = json.loads(keyword)
|
| 47 |
|
| 48 |
global pdf_content
|
| 49 |
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], keyword)
|
|
|
|
| 42 |
return jsonify({"error": "Both 'pdfLink' and 'keyword' must be provided."}), 400
|
| 43 |
|
| 44 |
try:
|
| 45 |
+
# # Call the function to process the PDF
|
| 46 |
+
# keyword = json.loads(keyword)
|
| 47 |
|
| 48 |
global pdf_content
|
| 49 |
pdf_content, pageNumTextFound,highlight_rect = Find_Hyperlinking_text.annotate_text_from_pdf([pdfLink], keyword)
|