quantitative_factor_evaluation/main_pro.py

18 lines
363 B
Python

#coding=utf-8
# 打包运行
import uvicorn
from src.core.app import startApp
(app, config) = startApp()
if __name__ == "__main__":
config = config.get("base")
if config:
# ,workers=config.get("workers")
uvicorn.run(app="main_pro:app",port=config.get("port"),workers=3 )
else:
uvicorn.run(app="main_pro:app")