str(uuid.uuid4())
Browse files
App/Generate/generatorRoutes.py
CHANGED
@@ -9,6 +9,7 @@ from .database.Model import models, database_url, Scene, Project, database
|
|
9 |
from .utils.RenderVideo import RenderVideo
|
10 |
from .Prompts.StoryGen import Prompt
|
11 |
from App.Editor.editorRoutes import celery_task, EditorRequest
|
|
|
12 |
|
13 |
|
14 |
async def update_scene(model_scene):
|
@@ -32,7 +33,7 @@ async def main(request: GeneratorRequest):
|
|
32 |
generated_story = Story.from_dict(message["scenes"])
|
33 |
|
34 |
print("Generated Story ✅")
|
35 |
-
x = await Project.objects.create(name=
|
36 |
|
37 |
# Assuming generated_story.scenes is a list of scenes
|
38 |
scene_updates = []
|
|
|
9 |
from .utils.RenderVideo import RenderVideo
|
10 |
from .Prompts.StoryGen import Prompt
|
11 |
from App.Editor.editorRoutes import celery_task, EditorRequest
|
12 |
+
import uuid
|
13 |
|
14 |
|
15 |
async def update_scene(model_scene):
|
|
|
33 |
generated_story = Story.from_dict(message["scenes"])
|
34 |
|
35 |
print("Generated Story ✅")
|
36 |
+
x = await Project.objects.create(name=str(uuid.uuid4()))
|
37 |
|
38 |
# Assuming generated_story.scenes is a list of scenes
|
39 |
scene_updates = []
|