还是随项目启动。解决对象传递问题

This commit is contained in:
liuwei
2025-03-27 12:01:10 +08:00
parent 86262bd7fa
commit d45dd28e1f

View File

@@ -53,11 +53,6 @@ def main(chat_type: int):
# 秀人网每天自动发pdf
robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
# 让机器人一直跑
robot.keep_running_and_block_process()
# 在启动Dashboard的部分
# 启动Dashboard服务器
dashboard_server = None
try:
@@ -72,6 +67,9 @@ def main(chat_type: int):
except Exception as e:
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
# 让机器人一直跑
robot.keep_running_and_block_process()
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument('-c', type=int, default=0, help=f'选择模型参数序号: {ChatType.help_hint()}')