path
Browse files
App/Generate/database/Model.py
CHANGED
@@ -8,7 +8,7 @@ from .Vercel import AsyncImageGenerator
|
|
8 |
import aiohttp
|
9 |
from typing import List
|
10 |
|
11 |
-
database_url = "sqlite+aiosqlite
|
12 |
database = databases.Database(database_url)
|
13 |
models = orm.ModelRegistry(database=database)
|
14 |
|
|
|
8 |
import aiohttp
|
9 |
from typing import List
|
10 |
|
11 |
+
database_url = "sqlite+aiosqlite://./ok.db"
|
12 |
database = databases.Database(database_url)
|
13 |
models = orm.ModelRegistry(database=database)
|
14 |
|
App/Generate/generatorRoutes.py
CHANGED
@@ -17,8 +17,7 @@ async def update_scene(model_scene):
|
|
17 |
async def main(request: GeneratorRequest):
|
18 |
topic = request.prompt
|
19 |
renderr = RenderVideo()
|
20 |
-
|
21 |
-
await models.create_all()
|
22 |
message = chatbot(Prompt.format(topic=topic))
|
23 |
|
24 |
generated_story = Story.from_dict(message["scenes"])
|
|
|
17 |
async def main(request: GeneratorRequest):
|
18 |
topic = request.prompt
|
19 |
renderr = RenderVideo()
|
20 |
+
await models._create_all(database_url)
|
|
|
21 |
message = chatbot(Prompt.format(topic=topic))
|
22 |
|
23 |
generated_story = Story.from_dict(message["scenes"])
|