MariaKaiser commited on
Commit
2630126
·
verified ·
1 Parent(s): de3f29f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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 = download_cache.get(chapter.title.prosodyReference)
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(