Update app2.py
Browse files
app2.py
CHANGED
@@ -26,9 +26,13 @@ configs_directory = os.path.join(base_directory, 'configs')
|
|
26 |
create_directory(configs_directory)
|
27 |
|
28 |
# 下载配置文件
|
29 |
-
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(configs_directory, 'config
|
30 |
-
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri.json', os.path.join(configs_directory, 'ui-config-pri.json'))
|
31 |
-
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(configs_directory, 'ui-config
|
|
|
|
|
|
|
|
|
32 |
|
33 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/extensions")
|
34 |
show_shell_info = False
|
@@ -217,6 +221,7 @@ def wandb():
|
|
217 |
|
218 |
def start():
|
219 |
try:
|
|
|
220 |
threading.Thread(target = localProxy,daemon=True).start()
|
221 |
except Exception as e:
|
222 |
# 在这里处理异常的代码
|
|
|
26 |
create_directory(configs_directory)
|
27 |
|
28 |
# 下载配置文件
|
29 |
+
#download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(configs_directory, 'config.json'))
|
30 |
+
#download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri.json', os.path.join(configs_directory, 'ui-config-pri.json'))
|
31 |
+
#download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(configs_directory, 'ui-config.json'))
|
32 |
+
# 下载配置文件
|
33 |
+
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json', os.path.join(base_directory, 'config.json'))
|
34 |
+
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pri.json', os.path.join(base_directory, 'ui-config-pri.json'))
|
35 |
+
download_file('https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub.json', os.path.join(base_directory, 'ui-config.json'))
|
36 |
|
37 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/extensions")
|
38 |
show_shell_info = False
|
|
|
221 |
|
222 |
def start():
|
223 |
try:
|
224 |
+
print('启动proxy')
|
225 |
threading.Thread(target = localProxy,daemon=True).start()
|
226 |
except Exception as e:
|
227 |
# 在这里处理异常的代码
|