Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def estimate_text_duration(text):
|
|
| 74 |
|
| 75 |
return duration
|
| 76 |
|
| 77 |
-
def split_text_by_paragraphs(text, max_duration_minutes=5, max_chars=
|
| 78 |
"""Split text into segments that won't exceed limit with safety margin"""
|
| 79 |
max_duration = max_duration_minutes
|
| 80 |
estimated_duration = estimate_text_duration(text)
|
|
|
|
| 74 |
|
| 75 |
return duration
|
| 76 |
|
| 77 |
+
def split_text_by_paragraphs(text, max_duration_minutes=5, max_chars=500):
|
| 78 |
"""Split text into segments that won't exceed limit with safety margin"""
|
| 79 |
max_duration = max_duration_minutes
|
| 80 |
estimated_duration = estimate_text_duration(text)
|