fixed sqlalchemy issuses
Browse files
app.db
ADDED
File without changes
|
main.py
CHANGED
@@ -21,5 +21,9 @@ app = FastAPI(title="OpenGenAI",
|
|
21 |
description="Your Excellect AI Physician", docs_url="/")
|
22 |
|
23 |
|
|
|
|
|
|
|
|
|
24 |
app.include_router(llm.router)
|
25 |
app.include_router(user.router)
|
|
|
21 |
description="Your Excellect AI Physician", docs_url="/")
|
22 |
|
23 |
|
24 |
+
@app.on_event("startup")
|
25 |
+
async def startup():
|
26 |
+
await database.create_tables()
|
27 |
+
|
28 |
app.include_router(llm.router)
|
29 |
app.include_router(user.router)
|