Update server.py
Browse files
server.py
CHANGED
|
@@ -10,7 +10,7 @@ from IPython.display import clear_output
|
|
| 10 |
from requests.adapters import HTTPAdapter
|
| 11 |
from requests.packages.urllib3.util.retry import Retry
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
huggiingface_repo_id = 'Qi28/SD_QZ' # Hugging Face 数据集 ID
|
| 16 |
huggiingface_path = 'frp'
|
|
@@ -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未启动" )
|
|
|
|
| 10 |
from requests.adapters import HTTPAdapter
|
| 11 |
from requests.packages.urllib3.util.retry import Retry
|
| 12 |
|
| 13 |
+
threading.Thread(target=run_TTS, daemon=True).start()
|
| 14 |
|
| 15 |
huggiingface_repo_id = 'Qi28/SD_QZ' # Hugging Face 数据集 ID
|
| 16 |
huggiingface_path = 'frp'
|
|
|
|
| 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未启动" )
|