Coverage for src/kwai/__main__.py: 0%
5 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
1"""Module for starting kwai.
3When this module is used, it will start the api and frontend application.
4If only the api is required, use kwai.api.
5"""
7import uvicorn
9from kwai.app import APP_NAME
10from kwai.core.args import create_args
13args = create_args(APP_NAME)
14uvicorn.run(
15 "kwai.app:create_app",
16 host=args.host,
17 port=args.port,
18 factory=True,
19 reload=args.reload,
20)