ACCA225 commited on
Commit
b26589e
1 Parent(s): 3f95dc2

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +5 -3
app2.py CHANGED
@@ -248,11 +248,13 @@ def start():
248
  #time.sleep(5)
249
 
250
  command = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
251
-
252
-
253
  process = subprocess.Popen(command, shell=True)
254
  time.sleep(250)
255
- os.system(f"{command} --port=7862 --ngrok=2bayh7KMd8cHxxCMdZPL0r8pS0A_7YiiKbumG48pzN7ixrLUN")
 
 
256
  except Exception as e:
257
  # 在这里处理异常的代码
258
  print(f"启动SD发生错误: {e}")
 
248
  #time.sleep(5)
249
 
250
  command = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
251
+ command1 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bayh7KMd8cHxxCMdZPL0r8pS0A_7YiiKbumG48pzN7ixrLUN"
252
+ command2 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863 --ngrok=2H8A6felNlmleMqWBF0UUt2C72e_7mqBMs1nVibXbfnK28KrX"
253
  process = subprocess.Popen(command, shell=True)
254
  time.sleep(250)
255
+ process = subprocess.Popen(command1, shell=True)
256
+ time.sleep(100)
257
+ os.system(f"{command2}")
258
  except Exception as e:
259
  # 在这里处理异常的代码
260
  print(f"启动SD发生错误: {e}")