andreeabodea
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def read_section(path, wanted_section, next_section):
|
|
63 |
page = doc.pages[page_num]
|
64 |
text.append(page.extract_text())
|
65 |
text = " ".join(text)
|
66 |
-
text.replace("\n", " ")
|
67 |
# print(wanted_section + str(extract_between(text, wanted_section, next_section)))
|
68 |
return wanted_section + str(extract_between(text, wanted_section, next_section))
|
69 |
|
|
|
63 |
page = doc.pages[page_num]
|
64 |
text.append(page.extract_text())
|
65 |
text = " ".join(text)
|
66 |
+
text = text.replace("\n", " ")
|
67 |
# print(wanted_section + str(extract_between(text, wanted_section, next_section)))
|
68 |
return wanted_section + str(extract_between(text, wanted_section, next_section))
|
69 |
|