ACCA225 commited on
Commit
faab6e2
1 Parent(s): 651e1c3

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +2 -2
app2.py CHANGED
@@ -335,7 +335,7 @@ def start():
335
  os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
336
  #time.sleep(5)
337
 
338
- command = f"python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
339
  command1 = "python launch.py --ui-config=/home/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862"
340
  command2 = "python launch.py --ui-config=/home/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863"
341
  process = subprocess.Popen(command, shell=True)
@@ -351,7 +351,7 @@ def start():
351
  except Exception as e:
352
  print(f"ngrok启动失败: {e}")
353
  start_ngrok()
354
- start_ngrok()
355
  except Exception as e:
356
  # 在这里处理异常的代码
357
  print(f"启动SD发生错误: {e}")
 
335
  os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
336
  #time.sleep(5)
337
 
338
+ command = f"python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7861"
339
  command1 = "python launch.py --ui-config=/home/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862"
340
  command2 = "python launch.py --ui-config=/home/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863"
341
  process = subprocess.Popen(command, shell=True)
 
351
  except Exception as e:
352
  print(f"ngrok启动失败: {e}")
353
  start_ngrok()
354
+ #start_ngrok()
355
  except Exception as e:
356
  # 在这里处理异常的代码
357
  print(f"启动SD发生错误: {e}")