Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def extract_summary(text_input):
|
|
| 15 |
# [\s\S]*? matches any character (including newline) non-greedily.
|
| 16 |
# (?=\n!\[\]\[image2\]) is a positive lookahead to assert the end marker without including it in the match.
|
| 17 |
#pattern = r"(Summary ID:[\s\S]*?)(?=\n!\[\]\[image2\])"
|
| 18 |
-
pattern = r"(Summary ID:[\s\S]*?)(?=\n!\[\]\[
|
| 19 |
|
| 20 |
match = re.search(pattern, text_input)
|
| 21 |
|
|
|
|
| 15 |
# [\s\S]*? matches any character (including newline) non-greedily.
|
| 16 |
# (?=\n!\[\]\[image2\]) is a positive lookahead to assert the end marker without including it in the match.
|
| 17 |
#pattern = r"(Summary ID:[\s\S]*?)(?=\n!\[\]\[image2\])"
|
| 18 |
+
pattern = r"(Summary ID:[\s\S]*?)(?=\n!\[\]\[image2\])"
|
| 19 |
|
| 20 |
match = re.search(pattern, text_input)
|
| 21 |
|