Qilan2 commited on
Commit
7b825eb
·
verified ·
1 Parent(s): 856d5d2

Update server2.py

Browse files
Files changed (1) hide show
  1. server2.py +3 -3
server2.py CHANGED
@@ -290,7 +290,7 @@ def check_api1():
290
  n=0
291
  while True:
292
  n = n + 1
293
- if not os.path.exists('/sillytavern') and n > 50:
294
  print("/sillytavern 文件不存在,结束检测")
295
  break
296
  try:
@@ -316,7 +316,7 @@ def check_api1():
316
  n = 0
317
  while True:
318
  n = n + 1
319
- if not os.path.exists('/sillytavern') and n > 50:
320
  print("/sillytavern 文件不存在,结束检测")
321
  break
322
  if Service_status:
@@ -463,7 +463,7 @@ def SillyTavern():
463
  os.system("rm -r /a /sillytavern /*.zi* /SillyTavern/")
464
  os.system("mkdir -p /sillytavern")
465
  os.chdir('/')
466
- os.system("kaggle datasets download xovale7506/sillytavern20-data")
467
  # 检查文件是否存在
468
  if not os.path.exists('/sillytavern2-data.zip'):
469
  print(f"文件 /sillytavern2-data.zip 不存在,程序将结束。")
 
290
  n=0
291
  while True:
292
  n = n + 1
293
+ if not os.path.exists('/sillytavern2-data.zip'):
294
  print("/sillytavern 文件不存在,结束检测")
295
  break
296
  try:
 
316
  n = 0
317
  while True:
318
  n = n + 1
319
+ if not os.path.exists('/sillytavern2-data.zip'):#and n > 50
320
  print("/sillytavern 文件不存在,结束检测")
321
  break
322
  if Service_status:
 
463
  os.system("rm -r /a /sillytavern /*.zi* /SillyTavern/")
464
  os.system("mkdir -p /sillytavern")
465
  os.chdir('/')
466
+ os.system("kaggle datasets download xovale7506/sillytavern2-data")
467
  # 检查文件是否存在
468
  if not os.path.exists('/sillytavern2-data.zip'):
469
  print(f"文件 /sillytavern2-data.zip 不存在,程序将结束。")