moriire commited on
Commit
cb1dcd9
1 Parent(s): 6f0d6e5

fixed sqlalchemy issuses

Browse files
Files changed (2) hide show
  1. app.db +0 -0
  2. main.py +4 -0
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)