quantitative_factor_evaluation/main_dev.py

20 lines
384 B
Python
Raw Normal View History

2025-11-17 13:32:48 +08:00
#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_dev:app",reload=True,port=config.get("port"),workers=3 )
else:
uvicorn.run(app="main_dev:app",reload=True)