models
Browse files- App/Generate/database/Model.py +1 -0
- App/app.py +2 -2
App/Generate/database/Model.py
CHANGED
@@ -199,6 +199,7 @@ class Project(orm.Model):
|
|
199 |
|
200 |
class Scene(orm.Model):
|
201 |
tts = CharacterAITTS()
|
|
|
202 |
# eleven = ElevenLab()
|
203 |
tablename = "scenes"
|
204 |
registry = models
|
|
|
199 |
|
200 |
class Scene(orm.Model):
|
201 |
tts = CharacterAITTS()
|
202 |
+
voice = ""
|
203 |
# eleven = ElevenLab()
|
204 |
tablename = "scenes"
|
205 |
registry = models
|
App/app.py
CHANGED
@@ -20,8 +20,8 @@ async def startup_event():
|
|
20 |
|
21 |
try:
|
22 |
# print(type(database.url), database_url)
|
23 |
-
|
24 |
-
await models._create_all(str(database.url))
|
25 |
except:
|
26 |
print("failed to create")
|
27 |
finally:
|
|
|
20 |
|
21 |
try:
|
22 |
# print(type(database.url), database_url)
|
23 |
+
await models.create_all()
|
24 |
+
# await models._create_all(str(database.url))
|
25 |
except:
|
26 |
print("failed to create")
|
27 |
finally:
|