LG0101 commited on
Commit
fdc34a6
·
verified ·
1 Parent(s): 982c973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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!\[\]\[^॥ गीता पढ़ें, पढ़ायें, जीवन में लायें ॥$\])"
19
 
20
  match = re.search(pattern, text_input)
21