MariaKaiser commited on
Commit
5554813
·
verified ·
1 Parent(s): ecd12fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -397,14 +397,14 @@ async def generate_story_audios(story: StoryCreationDTO, base_output: str, max_c
397
  if scene_tasks:
398
  #print(f"[INFO] Running {len(scene_tasks)} sentences for chapter '{chapter.chapterId}' concurrently")
399
  chapter_tasks.append(asyncio.gather(*scene_tasks))
400
- else:
401
  #print(f"[WARN] No sentences found in chapter '{chapter.chapterId}'")
402
 
403
  # Wait for all chapters to complete
404
  if chapter_tasks:
405
  await asyncio.gather(*chapter_tasks)
406
  #print(f"[INFO] Completed generating all chapters for story '{story.storyId}'")
407
- else:
408
  #print(f"[WARN] No chapters/tasks to process for story '{story.storyId}'")
409
 
410
  #_______________ Concatenating the generated audios to make the final story (post-processing)_______________________
 
397
  if scene_tasks:
398
  #print(f"[INFO] Running {len(scene_tasks)} sentences for chapter '{chapter.chapterId}' concurrently")
399
  chapter_tasks.append(asyncio.gather(*scene_tasks))
400
+ #else:
401
  #print(f"[WARN] No sentences found in chapter '{chapter.chapterId}'")
402
 
403
  # Wait for all chapters to complete
404
  if chapter_tasks:
405
  await asyncio.gather(*chapter_tasks)
406
  #print(f"[INFO] Completed generating all chapters for story '{story.storyId}'")
407
+ #else:
408
  #print(f"[WARN] No chapters/tasks to process for story '{story.storyId}'")
409
 
410
  #_______________ Concatenating the generated audios to make the final story (post-processing)_______________________