ACCA225 commited on
Commit
bc137f0
1 Parent(s): a2aeda7

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +1 -3
app3.py CHANGED
@@ -161,9 +161,7 @@ def check_service(host, port):
161
  def localProxy():
162
  os.system('sudo apt install nginx -y')
163
  download_file('https://huggingface.co/datasets/ACCA225/openxlab/resolve/main/proxy_nginx.conf', os.path.join(base_directory, 'proxy_nginx.conf'))
164
- if not check_service('localhost',_server_port):
165
- run(f'''nginx -c /home/xlab-app-center/stable-diffusion-webui/proxy_nginx.conf''')
166
- run(f'''nginx -s reload''')
167
 
168
 
169
  import os
 
161
  def localProxy():
162
  os.system('sudo apt install nginx -y')
163
  download_file('https://huggingface.co/datasets/ACCA225/openxlab/resolve/main/proxy_nginx.conf', os.path.join(base_directory, 'proxy_nginx.conf'))
164
+ run(f'''nginx -c /home/xlab-app-center/stable-diffusion-webui/proxy_nginx.conf''')
 
 
165
 
166
 
167
  import os