Update app1.py
Browse files
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 --
|
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}")
|