Qilan2 commited on
Commit
f20e72c
·
verified ·
1 Parent(s): 3035814

Update server2.py

Browse files
Files changed (1) hide show
  1. server2.py +4 -4
server2.py CHANGED
@@ -292,8 +292,8 @@ def check_api1():
292
  n=0
293
  while True:
294
  n = n + 1
295
- if not os.path.exists(f'/{huggingface_Data_name}.zip') and n > 50:
296
- print(f"/{huggingface_Data_name} 文件不存在,结束检测")
297
  break
298
  try:
299
  url = "http://127.0.0.1:8000/v1"
@@ -318,8 +318,8 @@ def check_api1():
318
  n = 0
319
  while True:
320
  n = n + 1
321
- if not os.path.exists(f'/{huggingface_Data_name}.zip') and n > 50:#
322
- print(f"/{huggingface_Data_name} 文件不存在,结束检测")
323
  break
324
  if Service_status:
325
  print("结束检测")
 
292
  n=0
293
  while True:
294
  n = n + 1
295
+ if not os.path.exists('/sillytavern/'):
296
+ print(f"/sillytavern/ 文件不存在,结束检测")
297
  break
298
  try:
299
  url = "http://127.0.0.1:8000/v1"
 
318
  n = 0
319
  while True:
320
  n = n + 1
321
+ if not os.path.exists('/sillytavern/'):#
322
+ print(f"/sillytavern/ 文件不存在,结束检测")
323
  break
324
  if Service_status:
325
  print("结束检测")