ACCA225 commited on
Commit
b9d7a9e
1 Parent(s): b97f9f5

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -4
app2.py CHANGED
@@ -42,11 +42,11 @@ create_directory(configs_directory)
42
 
43
  # 下载配置文件
44
  #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(configs_directory, 'config.json'))
45
- #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri.json', os.path.join(configs_directory, 'ui-config-pri.json'))
46
  #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(configs_directory, 'ui-config.json'))
47
  # 下载配置文件
48
  download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(base_directory, 'config.json'))
49
- download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri.json', os.path.join(base_directory, 'ui-config-pri.json'))
50
  download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(base_directory, 'ui-config.json'))
51
 
52
  os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/extensions")
@@ -248,8 +248,8 @@ def start():
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)
 
42
 
43
  # 下载配置文件
44
  #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(configs_directory, 'config.json'))
45
+ #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri2.json', os.path.join(configs_directory, 'ui-config-pri.json'))
46
  #download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(configs_directory, 'ui-config.json'))
47
  # 下载配置文件
48
  download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(base_directory, 'config.json'))
49
+ download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri2.json', os.path.join(base_directory, 'ui-config-pri.json'))
50
  download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(base_directory, 'ui-config.json'))
51
 
52
  os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/extensions")
 
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 --ui-config-file=/home/xlab-app-center/stable-diffusion-webui/ui-config-pri.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bayh7KMd8cHxxCMdZPL0r8pS0A_7YiiKbumG48pzN7ixrLUN"
252
+ command2 = "python launch.py --ui-config-file=/home/xlab-app-center/stable-diffusion-webui/ui-config-pri.json --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)