Spaces:
Sleeping
Sleeping
Update app.py
Browse files396 unmodified lines397398399400401402403404405406407408409410396 unmodified linesif scene_tasks:#print(f"[INFO] Running {len(scene_tasks)} sentences for chapter '{chapter.chapterId}' concurrently")chapter_tasks.append(asyncio.gather(*scene_tasks))else:#print(f"[WARN] No sentences found in chapter '{chapter.chapterId}'")# Wait for all chapters to completeif chapter_tasks:await asyncio.gather(*chapter_tasks)#print(f"[INFO] Completed generating all chapters for story '{story.storyId}'")else:#print(f"[WARN] No chapters/tasks to process for story '{story.storyId}'")#_______________ Concatenating the generated audios to make the final story (post-processing)_______________________396 unmodified lines397398399400401402403404405406407408409410396 unmodified linesif scene_tasks:#print(f"[INFO] Running {len(scene_tasks)} sentences for chapter '{chapter.chapterId}' concurrently")chapter_tasks.append(asyncio.gather(*scene_tasks))#else:#print(f"[WARN] No sentences found in chapter '{chapter.chapterId}'")# Wait for all chapters to completeif chapter_tasks:await asyncio.gather(*chapter_tasks)#print(f"[INFO] Completed generating all chapters for story '{story.storyId}'")#else:#print(f"[WARN] No chapters/tasks to process for story '{story.storyId}'")#_______________ Concatenating the generated audios to make the final story (post-processing)_______________________
app.py+2-2