Anshviradiya commited on
Commit
e47dd69
·
verified ·
1 Parent(s): 36a8a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ os.environ["UNSTRUCTURED_DISABLE_INFERENCE"] = "true"
25
  # ==================== QUESTION SPLITTER ====================
26
  def split_questions(text):
27
  text = text.replace("\n", " ").strip()
28
- questions = re.split(r'(?<=[?.])\s+', text)
29
  return [q.strip() for q in questions if q.strip()]
30
 
31
 
 
25
  # ==================== QUESTION SPLITTER ====================
26
  def split_questions(text):
27
  text = text.replace("\n", " ").strip()
28
+ questions = re.split(r'(?<=[?])\s+', text)
29
  return [q.strip() for q in questions if q.strip()]
30
 
31