ACCA225 commited on
Commit
7e7e2f3
1 Parent(s): 6909fd6

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +3 -3
app1.py CHANGED
@@ -226,9 +226,9 @@ def start():
226
  print(f"proxy An error occurred: {e}")
227
  try:
228
  #安装环境
229
- os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
230
- time.sleep(5)
231
- os.system(f"python launch.py --ngrok=2YypH9d2VXVL78HxF7g0lintH17_2GbtkFNFFngUkTZcyQ4SD --api --xformers --enable-insecure-extension-access --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle & python launch.py --api --xformers --enable-insecure-extension-access --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle --port=7862")
232
  except Exception as e:
233
  # 在这里处理异常的代码
234
  print(f"启动SD发生错误: {e}")
 
226
  print(f"proxy An error occurred: {e}")
227
  try:
228
  #安装环境
229
+ #os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
230
+ #time.sleep(5)
231
+ os.system(f"python launch.py --api --xformers --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle")
232
  except Exception as e:
233
  # 在这里处理异常的代码
234
  print(f"启动SD发生错误: {e}")