1 Star 1 Fork 0

野草/XAgent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start_server.py 639 Bytes
一键复制 编辑 原始数据 按行查看 历史
罗钦雨 提交于 2023-11-08 20:21 . add docstring
import uvicorn
from XAgentServer.envs import XAgentServerEnv
if __name__ == "__main__":
"""
Main execution method for running the server when the script is run directly,
rather than through an import statement.
Uses the Uvicorn ASGI server to serve the FastAPI application declared elsewhere in the script,
with host, port, server reload settings, and number of workers defined in environment settings
from XAgentServer.envs.XAgentServerEnv.
"""
uvicorn.run(app="app:app", host=XAgentServerEnv.host,
port=XAgentServerEnv.port, reload=XAgentServerEnv.reload, workers=XAgentServerEnv.workers)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wjqnxw/XAgent.git
git@gitee.com:wjqnxw/XAgent.git
wjqnxw
XAgent
XAgent
main

搜索帮助

D67c1975 1850385 1daf7b77 1850385