mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 15:21:02 +00:00
style:fmt
This commit is contained in:
parent
517737d730
commit
8acc2dc861
@ -21,6 +21,7 @@ def signal_handler(sig, frame):
|
||||
|
||||
|
||||
def async_db_summary(system_app: SystemApp):
|
||||
"""async db schema into vector db"""
|
||||
from pilot.summary.db_summary_client import DBSummaryClient
|
||||
|
||||
client = DBSummaryClient(system_app=system_app)
|
||||
|
@ -115,6 +115,9 @@ def _get_webserver_params(args: List[str] = None):
|
||||
def initialize_app(param: WebWerverParameters = None, args: List[str] = None):
|
||||
"""Initialize app
|
||||
If you use gunicorn as a process manager, initialize_app can be invoke in `on_starting` hook.
|
||||
Args:
|
||||
param:WebWerverParameters
|
||||
args:List[str]
|
||||
"""
|
||||
if not param:
|
||||
param = _get_webserver_params(args)
|
||||
|
@ -16,6 +16,9 @@ CFG = Config()
|
||||
model_path = LLM_MODEL_CONFIG.get(CFG.LLM_MODEL)
|
||||
|
||||
if __name__ == "__main__":
|
||||
"""run llm server including controller, manager worker
|
||||
If you use gunicorn as a process manager, initialize_app can be invoke in `on_starting` hook.
|
||||
"""
|
||||
run_worker_manager(
|
||||
model_name=CFG.LLM_MODEL,
|
||||
model_path=model_path,
|
||||
|
Loading…
Reference in New Issue
Block a user