This commit is contained in:
hiyouga committed 2023-07-20 22:14:54 +08:00
1 parent 6022adb72e
commit 8333795fcb
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -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(