Update app/app.py
Browse files- app/app.py +2 -2
app/app.py
CHANGED
@@ -5,7 +5,7 @@ from fastapi import Depends, FastAPI
|
|
5 |
from .db import User, create_db_and_tables
|
6 |
from .schemas import UserCreate, UserRead, UserUpdate
|
7 |
from .users import auth_backend, current_active_user, fastapi_users
|
8 |
-
from .llm import
|
9 |
|
10 |
@asynccontextmanager
|
11 |
async def lifespan(app: FastAPI):
|
@@ -14,7 +14,7 @@ async def lifespan(app: FastAPI):
|
|
14 |
yield
|
15 |
|
16 |
|
17 |
-
app = FastAPI(lifespan=lifespan)
|
18 |
|
19 |
app.include_router(
|
20 |
fastapi_users.get_auth_router(auth_backend), prefix="/auth/jwt", tags=["auth"]
|
|
|
5 |
from .db import User, create_db_and_tables
|
6 |
from .schemas import UserCreate, UserRead, UserUpdate
|
7 |
from .users import auth_backend, current_active_user, fastapi_users
|
8 |
+
from .llm import app, llm_router
|
9 |
|
10 |
@asynccontextmanager
|
11 |
async def lifespan(app: FastAPI):
|
|
|
14 |
yield
|
15 |
|
16 |
|
17 |
+
#app = FastAPI(lifespan=lifespan)
|
18 |
|
19 |
app.include_router(
|
20 |
fastapi_users.get_auth_router(auth_backend), prefix="/auth/jwt", tags=["auth"]
|