Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -365,10 +365,7 @@ async def generate_story_audios_async(story: StoryCreationDTO, base_output: str,
|
|
| 365 |
print(f"[INFO] Processing chapter '{chapter.chapterId}'")
|
| 366 |
|
| 367 |
# --- Chapter title ---
|
| 368 |
-
title_prosody =
|
| 369 |
-
if not title_prosody:
|
| 370 |
-
print(f"[WARN] Prosody file for chapter title '{chapter.chapterId}' not found in cache")
|
| 371 |
-
continue
|
| 372 |
|
| 373 |
title_save_path = chapter_dir / "title.wav"
|
| 374 |
tagged_title = generate_tagged_text(
|
|
|
|
| 365 |
print(f"[INFO] Processing chapter '{chapter.chapterId}'")
|
| 366 |
|
| 367 |
# --- Chapter title ---
|
| 368 |
+
title_prosody = await download_file_from_url(chapter.title.prosodyReference)
|
|
|
|
|
|
|
|
|
|
| 369 |
|
| 370 |
title_save_path = chapter_dir / "title.wav"
|
| 371 |
tagged_title = generate_tagged_text(
|