fix api
This commit is contained in:
1 parent
6022adb72e
commit
8333795fcb
2 files changed
+5
-2
No files matched your search
@@ -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