fix api
Former-commit-id: 4c3e8be325045e432b31c519132123c7b0689262
This commit is contained in:
@@ -30,7 +30,7 @@ async def lifespan(app: FastAPI): # collects GPU memory
|
||||
torch_gc()
|
||||
|
||||
|
||||
def create_app(chat_model: ChatModel):
|
||||
def create_app(chat_model: ChatModel) -> FastAPI:
|
||||
app = FastAPI(lifespan=lifespan)
|
||||
|
||||
app.add_middleware(
|
||||
|
||||
Reference in New Issue
Block a user