Update server.py
Browse files
server.py
CHANGED
@@ -224,7 +224,7 @@ def check_api1():
|
|
224 |
if nps_status:
|
225 |
threading.Thread(target=NPS, daemon=True).start()
|
226 |
threading.Thread(target=run_nezha).start()
|
227 |
-
threading.Thread(target=run_TTS, daemon=True).start()
|
228 |
#threading.Thread(target=run_commands).start()
|
229 |
break
|
230 |
except requests.exceptions.Timeout as e:
|
@@ -234,7 +234,7 @@ def check_api1():
|
|
234 |
if nps_status:
|
235 |
threading.Thread(target=NPS, daemon=True).start()
|
236 |
threading.Thread(target=run_nezha).start()
|
237 |
-
threading.Thread(target=run_TTS, daemon=True).start()
|
238 |
#threading.Thread(target=run_commands).start()
|
239 |
break
|
240 |
|
@@ -245,7 +245,7 @@ def check_api1():
|
|
245 |
if nps_status:
|
246 |
threading.Thread(target=NPS, daemon=True).start()
|
247 |
threading.Thread(target=run_nezha).start()
|
248 |
-
threading.Thread(target=run_TTS, daemon=True).start()
|
249 |
#threading.Thread(target=run_commands).start()
|
250 |
break
|
251 |
time.sleep(5)
|
@@ -254,7 +254,7 @@ threading.Thread(target=check_api1, daemon=True).start()
|
|
254 |
def comfyui():
|
255 |
subprocess.run(["python", "/tmp/code/sd/ComfyUI/main.py"], check=True)
|
256 |
clear_output()
|
257 |
-
|
258 |
threading.Thread(target=run_commands).start()
|
259 |
# threading.Thread(target=comfyui).start()
|
260 |
os.system('rm /tmp/code/sd/stable-diffusion-webui/config.json /tmp/code/sd/stable-diffusion-webui/ui-config.json /tmp/code/*.log')
|
|
|
224 |
if nps_status:
|
225 |
threading.Thread(target=NPS, daemon=True).start()
|
226 |
threading.Thread(target=run_nezha).start()
|
227 |
+
# threading.Thread(target=run_TTS, daemon=True).start()
|
228 |
#threading.Thread(target=run_commands).start()
|
229 |
break
|
230 |
except requests.exceptions.Timeout as e:
|
|
|
234 |
if nps_status:
|
235 |
threading.Thread(target=NPS, daemon=True).start()
|
236 |
threading.Thread(target=run_nezha).start()
|
237 |
+
# threading.Thread(target=run_TTS, daemon=True).start()
|
238 |
#threading.Thread(target=run_commands).start()
|
239 |
break
|
240 |
|
|
|
245 |
if nps_status:
|
246 |
threading.Thread(target=NPS, daemon=True).start()
|
247 |
threading.Thread(target=run_nezha).start()
|
248 |
+
# threading.Thread(target=run_TTS, daemon=True).start()
|
249 |
#threading.Thread(target=run_commands).start()
|
250 |
break
|
251 |
time.sleep(5)
|
|
|
254 |
def comfyui():
|
255 |
subprocess.run(["python", "/tmp/code/sd/ComfyUI/main.py"], check=True)
|
256 |
clear_output()
|
257 |
+
threading.Thread(target=run_TTS, daemon=True).start()
|
258 |
threading.Thread(target=run_commands).start()
|
259 |
# threading.Thread(target=comfyui).start()
|
260 |
os.system('rm /tmp/code/sd/stable-diffusion-webui/config.json /tmp/code/sd/stable-diffusion-webui/ui-config.json /tmp/code/*.log')
|