simple fix
Browse files
App/Generate/generatorRoutes.py
CHANGED
@@ -50,6 +50,7 @@ async def generate_assets(generated_story: Story, batch_size=4, threeD=True):
|
|
50 |
model_scene.image_prompts = story_scene.image_prompts
|
51 |
model_scene.narration = story_scene.narration
|
52 |
await model_scene.update(**model_scene.__dict__)
|
|
|
53 |
batch_updates.append(
|
54 |
update_scene(model_scene)
|
55 |
) # Append update coroutine to batch_updates
|
@@ -57,7 +58,7 @@ async def generate_assets(generated_story: Story, batch_size=4, threeD=True):
|
|
57 |
await asyncio.gather(
|
58 |
*batch_updates
|
59 |
) # Await update coroutines for this batch
|
60 |
-
|
61 |
pbar.update(len(batch)) # Increment progress bar by the size of the batch
|
62 |
|
63 |
###### Here we generate the videos
|
|
|
50 |
model_scene.image_prompts = story_scene.image_prompts
|
51 |
model_scene.narration = story_scene.narration
|
52 |
await model_scene.update(**model_scene.__dict__)
|
53 |
+
all_scenes.append(model_scene)
|
54 |
batch_updates.append(
|
55 |
update_scene(model_scene)
|
56 |
) # Append update coroutine to batch_updates
|
|
|
58 |
await asyncio.gather(
|
59 |
*batch_updates
|
60 |
) # Await update coroutines for this batch
|
61 |
+
|
62 |
pbar.update(len(batch)) # Increment progress bar by the size of the batch
|
63 |
|
64 |
###### Here we generate the videos
|