Spaces:
Paused
Paused
Fix: Update MULTILINGUAL_VOICES mapping for Vietnamese TTS support
Browse files
ai_ext.py
CHANGED
|
@@ -381,7 +381,7 @@ def _short_script(post) -> str:
|
|
| 381 |
text = post.get("text", "") or post.get("title", "")
|
| 382 |
text = re.sub(r"^[•\-\*]\s*", "", text, flags=re.M)
|
| 383 |
text = re.sub(r"\s*\n\s*", ". ", text)
|
| 384 |
-
return _clean_text(text)[:
|
| 385 |
|
| 386 |
|
| 387 |
# ===== SCRAPER FUNCTIONS (required by ai_patch.py) =====
|
|
|
|
| 381 |
text = post.get("text", "") or post.get("title", "")
|
| 382 |
text = re.sub(r"^[•\-\*]\s*", "", text, flags=re.M)
|
| 383 |
text = re.sub(r"\s*\n\s*", ". ", text)
|
| 384 |
+
return _clean_text(text)[:2000] # Increased from 1000 to 2000 for full content
|
| 385 |
|
| 386 |
|
| 387 |
# ===== SCRAPER FUNCTIONS (required by ai_patch.py) =====
|