Qilan2 commited on
Commit
bc265bd
·
verified ·
1 Parent(s): 59ce773

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -495,8 +495,8 @@ def monitor_port():
495
  print(f"端口 8000 未被使用")
496
  # 启动脚本并在后台运行
497
  try:
498
- process = subprocess.Popen('yes | sh /sillytavern/start.sh', shell=True)
499
- print("已尝试启动 /sillytavern/start.sh")
500
  time.sleep(20)
501
  except Exception as e: # 捕获所有异常
502
  print(f"命令失败: {e}")
 
495
  print(f"端口 8000 未被使用")
496
  # 启动脚本并在后台运行
497
  try:
498
+ process = subprocess.Popen(f'yes | sh {data_folder }/start.sh', shell=True)
499
+ print(f"已尝试启动 {data_folder }/start.sh")
500
  time.sleep(20)
501
  except Exception as e: # 捕获所有异常
502
  print(f"命令失败: {e}")