Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def split_paragraphs_with_spans(merged_text: str):
|
|
112 |
returning normalized paragraphs for embedding AND exact spans (start,end)
|
113 |
in the original merged_text for highlighting/jumping.
|
114 |
"""
|
115 |
-
sep = re.compile(r'(?:\r?\n
|
116 |
paras_norm = []
|
117 |
spans = []
|
118 |
pos = 0
|
|
|
112 |
returning normalized paragraphs for embedding AND exact spans (start,end)
|
113 |
in the original merged_text for highlighting/jumping.
|
114 |
"""
|
115 |
+
sep = re.compile(r'(?:\r?\n)+', flags=re.MULTILINE)
|
116 |
paras_norm = []
|
117 |
spans = []
|
118 |
pos = 0
|