SecureLLMSys commited on
Commit
ec7a6b4
·
1 Parent(s): 63f814c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -236,7 +236,7 @@ def split_into_sentences(text: str):
236
  sentences = []
237
  start = 0
238
  for i, char in enumerate(text):
239
- if char in ".!?":
240
  if i + 1 == len(text) or text[i + 1] == " ":
241
  sentences.append(text[start:i + 1].strip())
242
  start = i + 1
 
236
  sentences = []
237
  start = 0
238
  for i, char in enumerate(text):
239
+ if char in ".?。":
240
  if i + 1 == len(text) or text[i + 1] == " ":
241
  sentences.append(text[start:i + 1].strip())
242
  start = i + 1