ACCA225 commited on
Commit
bf39d4f
1 Parent(s): 6710dda

Update app11.py

Browse files
Files changed (1) hide show
  1. app11.py +6 -0
app11.py CHANGED
@@ -107,6 +107,12 @@ import time
107
  import time
108
  import nvidia_smi
109
  import wandb
 
 
 
 
 
 
110
  show_shell_info = False
111
  def run(command, cwd=None, desc=None, errdesc=None, custom_env=None,try_error:bool=True) -> str:
112
  global show_shell_info
 
107
  import time
108
  import nvidia_smi
109
  import wandb
110
+ def remove_restart():
111
+ os.chdir("/home/xlab-app-center/stable-diffusion-webui/html")
112
+ os.system("rm ./footer.html && wget -O footer.html https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/footer.html")
113
+ os.chdir("/home/xlab-app-center/stable-diffusion-webui/modules")
114
+ os.system("rm ./ui_settings.py && wget -O ui_settings.py https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui_settings.py ")
115
+ remove_restart()
116
  show_shell_info = False
117
  def run(command, cwd=None, desc=None, errdesc=None, custom_env=None,try_error:bool=True) -> str:
118
  global show_shell_info