Cachoups commited on
Commit
d774f5b
·
verified ·
1 Parent(s): 954fd40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)