Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,9 +56,9 @@ def download_pdf():
|
|
| 56 |
# return "Failed to download the PDF.", 500
|
| 57 |
pdflink='https://www.dropbox.com/scl/fi/fjykwhhn9gu9t3kqrflxd/LA002-NOR-ZZ-ZZ-T-A-2403_Architectural-Specification-F10-Brick-and-Block-Walling_A4-_C01.pdf?rlkey=ek9i66i79m0hwp8z5yjs6rp5p&st=jh05a6qs&dl=0'
|
| 58 |
keyword='To be read with preliminaries/ general conditions'
|
| 59 |
-
|
| 60 |
-
getInfotoMeasure(pagenum)
|
| 61 |
pdf_content, page_num = highlight_text_from_pdf(pdf_link, keyword)
|
|
|
|
| 62 |
pdf_content = BytesIO(response.content)
|
| 63 |
|
| 64 |
return send_file(
|
|
|
|
| 56 |
# return "Failed to download the PDF.", 500
|
| 57 |
pdflink='https://www.dropbox.com/scl/fi/fjykwhhn9gu9t3kqrflxd/LA002-NOR-ZZ-ZZ-T-A-2403_Architectural-Specification-F10-Brick-and-Block-Walling_A4-_C01.pdf?rlkey=ek9i66i79m0hwp8z5yjs6rp5p&st=jh05a6qs&dl=0'
|
| 58 |
keyword='To be read with preliminaries/ general conditions'
|
| 59 |
+
|
|
|
|
| 60 |
pdf_content, page_num = highlight_text_from_pdf(pdf_link, keyword)
|
| 61 |
+
getInfotoMeasure(pageNumTextFound)
|
| 62 |
pdf_content = BytesIO(response.content)
|
| 63 |
|
| 64 |
return send_file(
|