Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -316,7 +316,7 @@ import io
|
|
| 316 |
|
| 317 |
def display_highlighted_pdf(file_path, text_to_highlight):
|
| 318 |
# Open the PDF document
|
| 319 |
-
doc =
|
| 320 |
|
| 321 |
# Iterate over each page in the PDF
|
| 322 |
for page_index in range(len(doc)):
|
|
|
|
| 316 |
|
| 317 |
def display_highlighted_pdf(file_path, text_to_highlight):
|
| 318 |
# Open the PDF document
|
| 319 |
+
doc = pymupdf.open(file_path)
|
| 320 |
|
| 321 |
# Iterate over each page in the PDF
|
| 322 |
for page_index in range(len(doc)):
|