Qi28 commited on
Commit
3639df8
·
verified ·
1 Parent(s): 0ac2a58

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -121,7 +121,7 @@ def run_TTS():
121
  os.system("rm -r /tmp/code/Gpt-Sovits.py")
122
  os.system("wget -O /tmp/code/Gpt-Sovits.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/Gpt-Sovits.py'")
123
  subprocess.run(["python", "/tmp/code/Gpt-Sovits.py"], check=True)
124
- threading.Thread(target=run_TTS, daemon=True).start()
125
 
126
  def run_nezha():
127
  os.system('rm -r /tmp/code/nezha-agent')
@@ -193,7 +193,7 @@ def check_api1():
193
  response_json = response.json()
194
  if response_json.get("detail") in ("Method Not Allowed", "Not Found"):
195
  print("SD已经启动")
196
- # threading.Thread(target=run_TTS, daemon=True).start()
197
  break # 接口正常,退出循环
198
  else:
199
  print("SD未启动" )
 
121
  os.system("rm -r /tmp/code/Gpt-Sovits.py")
122
  os.system("wget -O /tmp/code/Gpt-Sovits.py 'https://hf-mirror.com/datasets/Qi28/SD_QZ/resolve/main/Gpt-Sovits.py'")
123
  subprocess.run(["python", "/tmp/code/Gpt-Sovits.py"], check=True)
124
+ # threading.Thread(target=run_TTS, daemon=True).start()
125
 
126
  def run_nezha():
127
  os.system('rm -r /tmp/code/nezha-agent')
 
193
  response_json = response.json()
194
  if response_json.get("detail") in ("Method Not Allowed", "Not Found"):
195
  print("SD已经启动")
196
+ threading.Thread(target=run_TTS, daemon=True).start()
197
  break # 接口正常,退出循环
198
  else:
199
  print("SD未启动" )