sqlite+aiosqlite:///ok.db
Browse files
App/Generate/generatorRoutes.py
CHANGED
@@ -8,7 +8,6 @@ from .database.Model import models, database_url, Scene, Project
|
|
8 |
from .utils.RenderVideo import RenderVideo
|
9 |
from .Prompts.StoryGen import Prompt
|
10 |
from App.Editor.editorRoutes import celery_task, EditorRequest
|
11 |
-
import uuid
|
12 |
|
13 |
|
14 |
async def update_scene(model_scene):
|
@@ -19,7 +18,7 @@ async def update_scene(model_scene):
|
|
19 |
async def main(request: GeneratorRequest):
|
20 |
topic = request.prompt
|
21 |
renderr = RenderVideo()
|
22 |
-
await models._create_all(
|
23 |
message = chatbot(Prompt.format(topic=topic))
|
24 |
|
25 |
generated_story = Story.from_dict(message["scenes"])
|
|
|
8 |
from .utils.RenderVideo import RenderVideo
|
9 |
from .Prompts.StoryGen import Prompt
|
10 |
from App.Editor.editorRoutes import celery_task, EditorRequest
|
|
|
11 |
|
12 |
|
13 |
async def update_scene(model_scene):
|
|
|
18 |
async def main(request: GeneratorRequest):
|
19 |
topic = request.prompt
|
20 |
renderr = RenderVideo()
|
21 |
+
await models._create_all(database_url)
|
22 |
message = chatbot(Prompt.format(topic=topic))
|
23 |
|
24 |
generated_story = Story.from_dict(message["scenes"])
|