Spaces:
Running on Zero
Running on Zero
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def _audio_to_tuple(audio):
|
|
| 175 |
return None
|
| 176 |
|
| 177 |
|
| 178 |
-
def split_text(text, max_len=
|
| 179 |
"""Split text into segments of approximately max_len characters."""
|
| 180 |
import re
|
| 181 |
# Split by common sentence delimiters, keeping the delimiter
|
|
|
|
| 175 |
return None
|
| 176 |
|
| 177 |
|
| 178 |
+
def split_text(text, max_len=100):
|
| 179 |
"""Split text into segments of approximately max_len characters."""
|
| 180 |
import re
|
| 181 |
# Split by common sentence delimiters, keeping the delimiter
|