Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def extract_and_paragraph(pdf1, pdf2, paragraph):
|
|
68 |
paragraphs_2 = lib.read_pdf.extract_and_format_paragraphs(pdf2_path)
|
69 |
|
70 |
start_keyword = ["Main risks to", "Developments in Financial Markets"]
|
71 |
-
end_keywords = ["4. Appendix", "Annex:", "4. Annex", "Detailed tables", "ACKNOWLEDGEMENTS", "STATISTICAL ANNEX", "PROSPECTS BY MEMBER STATES"]
|
72 |
|
73 |
start_index1, end_index1 = lib.read_pdf.find_text_range(paragraphs_1, start_keyword, end_keywords)
|
74 |
start_index2, end_index2 = lib.read_pdf.find_text_range(paragraphs_2, start_keyword, end_keywords)
|
|
|
68 |
paragraphs_2 = lib.read_pdf.extract_and_format_paragraphs(pdf2_path)
|
69 |
|
70 |
start_keyword = ["Main risks to", "Developments in Financial Markets"]
|
71 |
+
end_keywords = ["4. Appendix", "Annex:", "4. Annex", "Detailed tables", "ACKNOWLEDGEMENTS", "STATISTICAL ANNEX", "PROSPECTS BY MEMBER STATES", "At the conclusion of the discussion"]
|
72 |
|
73 |
start_index1, end_index1 = lib.read_pdf.find_text_range(paragraphs_1, start_keyword, end_keywords)
|
74 |
start_index2, end_index2 = lib.read_pdf.find_text_range(paragraphs_2, start_keyword, end_keywords)
|