ACCA225 commited on
Commit
5e7da19
1 Parent(s): a50f52d

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +2 -2
app3.py CHANGED
@@ -260,10 +260,10 @@ def start():
260
  # print(f"proxy An error occurred: {e}")
261
  try:
262
  #安装环境
263
- os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
264
  #time.sleep(5)
265
 
266
- command = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
267
  command1 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bgXLjjKFvxfbuZFlR2NMZkvL8n_4WrK7f15FLtWb8p7v3oaF"
268
  command2 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863 --ngrok=2CXyNlT9xGfFoL5ruI6hQV20FNq_7tbmuzS9RtyNTkyEe1J6C"
269
  process = subprocess.Popen(command, shell=True)
 
260
  # print(f"proxy An error occurred: {e}")
261
  try:
262
  #安装环境
263
+ os.system(f"python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
264
  #time.sleep(5)
265
 
266
+ command = "python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
267
  command1 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bgXLjjKFvxfbuZFlR2NMZkvL8n_4WrK7f15FLtWb8p7v3oaF"
268
  command2 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863 --ngrok=2CXyNlT9xGfFoL5ruI6hQV20FNq_7tbmuzS9RtyNTkyEe1J6C"
269
  process = subprocess.Popen(command, shell=True)