Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'(?<=[?
|
| 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 |
|