Update app2.py
Browse files
app2.py
CHANGED
@@ -20,7 +20,7 @@ from concurrent.futures import ProcessPoolExecutor
|
|
20 |
os.system("pip install nvidia-ml-py3")
|
21 |
os.chdir(f"/home/xlab-app-center")
|
22 |
os.system(f"git clone https://openi.pcl.ac.cn/2575044704/stab /home/xlab-app-center/stable-diffusion-webui")
|
23 |
-
|
24 |
os.system(f"cp /home/xlab-app-center/styles.csv /home/xlab-app-center/stable-diffusion-webui/styles.csv")
|
25 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui")
|
26 |
os.system(f"git lfs install")
|
@@ -32,6 +32,7 @@ def remove_restart():
|
|
32 |
os.system("rm ./footer.html && wget -O footer.html https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/footer.html")
|
33 |
os.chdir("/home/xlab-app-center/stable-diffusion-webui/modules")
|
34 |
os.system("rm ./ui_settings.py && wget -O ui_settings.py https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui_settings.py ")
|
|
|
35 |
def create_directory(directory_path):
|
36 |
if not os.path.exists(directory_path):
|
37 |
os.makedirs(directory_path)
|
|
|
20 |
os.system("pip install nvidia-ml-py3")
|
21 |
os.chdir(f"/home/xlab-app-center")
|
22 |
os.system(f"git clone https://openi.pcl.ac.cn/2575044704/stab /home/xlab-app-center/stable-diffusion-webui")
|
23 |
+
|
24 |
os.system(f"cp /home/xlab-app-center/styles.csv /home/xlab-app-center/stable-diffusion-webui/styles.csv")
|
25 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui")
|
26 |
os.system(f"git lfs install")
|
|
|
32 |
os.system("rm ./footer.html && wget -O footer.html https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/footer.html")
|
33 |
os.chdir("/home/xlab-app-center/stable-diffusion-webui/modules")
|
34 |
os.system("rm ./ui_settings.py && wget -O ui_settings.py https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui_settings.py ")
|
35 |
+
remove_restart()
|
36 |
def create_directory(directory_path):
|
37 |
if not os.path.exists(directory_path):
|
38 |
os.makedirs(directory_path)
|